Mark Dickinson <[EMAIL PROTECTED]> added the comment: 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. Added file: http://bugs.python.org/file10729/hex_float.py _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3008> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com