re: TIL NaN and Inf exist in Python too... VIEW POST


Theres -Infinity too.


And math.isnan, and math.nan, which is not float('nan'), apparently.

I'm kind of unsatisfied now that 1/0 errors in Python. In both Haskell and JS it's Infinity, which I find is the desired behavior more often.


Wow, I didn't even know floating points different that much between langs.

Code of Conduct Report abuse