[Python-ideas] Hexadecimal floating literals

David Mertz mertz at gnosis.cx
Fri Sep 22 11:37:06 EDT 2017


>
> Unrelated thought:  Users might be unsure if the exponent in a hexadecimal
> float is in decimal or in hex.


I was playing around with float.fromhex() for this thread, and the first
number I tried to spell used a hex exponent because that seemed like "the
obvious thing"... I figured it out quickly enough, but the actual spelling
feels less obvious to me.

-- 
Keeping medicines from the bloodstreams of the sick; food
from the bellies of the hungry; books from the hands of the
uneducated; technology from the underdeveloped; and putting
advocates of freedom in prisons.  Intellectual property is
to the 21st century what the slave trade was to the 16th.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170922/0fad6181/attachment.html>


More information about the Python-ideas mailing list