Yep. It’s also the only way that I know of to get the sign of a NaN. We can’t even parse the repr for that!
Brandt > On Nov 28, 2019, at 21:36, Guido van Rossum <[email protected]> wrote: > I suspect the only reason it exists as a builtin is that it handles -0.0 > correctly. But that's really only of interest to people doing serious > floating point stuff. _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/ZRQLVEKTUPX2EHL7KXPLESEGH63HEE75/ Code of Conduct: http://python.org/psf/codeofconduct/
