On Fri, Jun 27, 2008 at 3:59 PM, Terry Reedy <tjreedy at udel.edu> wrote: > > > 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 That seems to be a misplaced attempt at economy, obscuring the intent from the reader. -- --Guido van Rossum (home page: http://www.python.org/~guido/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4