This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients alexandre.vassalotti, amaury.forgeotdarc, belopolsky, gvanrossum, mark.dickinson, pitrou, rhettinger, terry.reedy
Date 2008-06-25.17:40:41
SpamBayes Score 0.040992733
Marked as misclassified No
Message-id <1214415643.51.0.170045516618.issue3008@psf.upfronthosting.co.za>
In-reply-to
Content
Well, here's some Python code to output C99-style hexadecimal 
representations of floats.  It's not quite the same as Java's output, 
which also special cases IEEE 754 subnormals (writing them with a fixed 
exponent of -1022 and a '0' before the point).  But then Python doesn't 
have the luxury of knowing that its floats are IEEE 754 format.

The big downside is that the output format has a decimal point in it, so 
won't be eval-able.
History
Date User Action Args
2008-06-25 17:40:43mark.dickinsonsetspambayes_score: 0.0409927 -> 0.040992733
recipients: + mark.dickinson, gvanrossum, rhettinger, terry.reedy, amaury.forgeotdarc, belopolsky, pitrou, alexandre.vassalotti
2008-06-25 17:40:43mark.dickinsonsetspambayes_score: 0.0409927 -> 0.0409927
messageid: <1214415643.51.0.170045516618.issue3008@psf.upfronthosting.co.za>
2008-06-25 17:40:42mark.dickinsonlinkissue3008 messages
2008-06-25 17:40:42mark.dickinsoncreate