[Python-Dev] [Python-checkins] r64424 - in python/trunk:Include/object.h Lib/test/test_sys.py Misc/NEWSObjects/intobject.c Objects/longobject.c Objects/typeobject.cPython/bltinmodule.c (original) (raw)

Terry Reedy tjreedy at udel.edu
Sat Jun 28 00:59:08 CEST 2008


Mark Dickinson wrote:

math.tohex(3.14) '0x1.91eb851eb851fp+1' math.fromhex('0x1.91eb851eb851fp+1') 3.1400000000000001

How about just one self-inverse method .hex? .hex(float/hexstring) returns corresponding hexstring/float



More information about the Python-Dev mailing list