diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2008-07-15 19:08:33 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2008-07-15 19:08:33 (GMT) |
commit | 7103aa42c0d3ce8d75c9a9e299cf4d9b0be544de (patch) | |
tree | 4cf5fe6e4276b444443b1aa31fbc6a2ae89a4be6 /Doc/whatsnew | |
parent | 9949d6ed4b74e50566abc85ac0154a664e6436ee (diff) | |
download | cpython-7103aa42c0d3ce8d75c9a9e299cf4d9b0be544de.zip cpython-7103aa42c0d3ce8d75c9a9e299cf4d9b0be544de.tar.gz cpython-7103aa42c0d3ce8d75c9a9e299cf4d9b0be544de.tar.bz2 |
Issue #3008: add instance method float.hex and class method float.fromhex
to convert floats to and from hexadecimal strings respectively.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/2.6.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst index fe25e3b..5cf29cb 100644 --- a/Doc/whatsnew/2.6.rst +++ b/Doc/whatsnew/2.6.rst @@ -1521,6 +1521,11 @@ Here are all of the changes that Python 2.6 makes to the core Python language. :func:`isnan`, return true if their floating-point argument is infinite or Not A Number. (:issue:`1640`) + The float type has a new instance method :meth:`float.hex` and a + corresponding new class method :meth:`float.fromhex` to convert + floating-point numbers to and from hexadecimal strings, + respectively. (:issue:`3008`) + * The :mod:`math` module has a number of new functions, and the existing functions have been improved to give more consistent behaviour across platforms, especially with respect to handling of |