PyDocs

Nav

Python Runtime Services

float.hex

builtins

method of float
  • float.hex()
Return a hexadecimal representation of a floating-point number.

>>> (-0.1).hex()
'-0x1.999999999999ap-4'
>>> 3.14159.hex()
'0x1.921f9f01b866ep+1'
0 Examples
No examples for builtins/float.hex.
See Also
No see-alsos for builtins/float.hex
0 Notes
No notes for float.hex