DEV Community

Discussion on: TIL:When n + 1 == n in python?

Collapse
 
mortoray profile image
edA‑qa mort‑ora‑y

That's a fairly awful way to handle floating point limits. Much lower ranges should be checked if the algorithm is in danger of breaking.