And math.isnan, and math.nan, which is not float('nan'), apparently.
is not float('nan')
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.
Its different from lang to lang.
Wow, I didn't even know floating points different that much between langs.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.