I probably should have added "user exposed" or something to my comment. Those extra bits certainly seem to offer compiler optimization possibilities, as apparently SpiderMonkey does with WASM.
I can easily *imagine* a library like NumPy or PyTorch deciding to expose something useful with those 52 unused mantissa bits. But that's some future version, if ever.
On Sat, Sep 12, 2020, 2:16 PM Cade Brown email@example.com wrote:
On Sat, Sep 12, 2020, 8:10 PM David Mertz firstname.lastname@example.org wrote:
On Sat, Sep 12, 2020, 2:02 PM Steven D'Aprano email@example.com wrote:
In general though, Python doesn't support generating the full range of NANs with payloads directly.
I've researched this a little bit for discussion in a book I'm writing, and I have not been able to identify ANY widely used programming language or tool that does anything meaningful with the NaN payloads.
It's possible I've missed something, but certainly not the top 20 languages are libraries that might come to mind. _______________________________________________ Python-ideas mailing list -- firstname.lastname@example.org To unsubscribe send an email to email@example.com https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://firstname.lastname@example.org/message/FZ7QGR... Code of Conduct: http://python.org/psf/codeofconduct/