Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 36cea39

Browse files
committed
Merged revisions 75205 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r75205 | mark.dickinson | 2009-10-03 11:14:34 +0100 (Sat, 03 Oct 2009) | 2 lines Issue #7028: Add note to hex() builtin docs pointing to float.hex(). ........
1 parent 7942e2e commit 36cea39

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/library/functions.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,11 @@ are always available. They are listed here in alphabetical order.
489489
expression. If *x* is not a Python :class:`int` object, it has to define an
490490
:meth:`__index__` method that returns an integer.
491491

492+
.. note::
493+
494+
To obtain a hexadecimal string representation for a float, use the
495+
:meth:`float.hex` method.
496+
492497

493498
.. function:: id(object)
494499

0 commit comments

Comments
 (0)