I got it to work with Python 2.6.2. >>> import struct >>> struct.unpack('d', struct.pack('Q', 1))[0] 4.9406564584124654e-324
Python 3.1 will print 5e-324, which is fair enough. Cheers, Xavier
-- http://mail.python.org/mailman/listinfo/python-list
I got it to work with Python 2.6.2. >>> import struct >>> struct.unpack('d', struct.pack('Q', 1))[0] 4.9406564584124654e-324
Python 3.1 will print 5e-324, which is fair enough. Cheers, Xavier
-- http://mail.python.org/mailman/listinfo/python-list