]> granicus.if.org Git - python/commitdiff
Change description of float('nan') feature; NaNs don't care much about
authorMark Dickinson <dickinsm@gmail.com>
Tue, 24 Jun 2008 11:08:58 +0000 (11:08 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Tue, 24 Jun 2008 11:08:58 +0000 (11:08 +0000)
signs, and float('nan'), float('+nan') and float('-nan') actually all
generate the exact same NaN value.

Doc/whatsnew/2.6.rst

index 6f1f157699ad832da2946824ea4e50afc4e0b7e7..3e6190cb03ef61bdd8baf32a2181f5a42fdebe51 100644 (file)
@@ -1374,8 +1374,8 @@ Here are all of the changes that Python 2.6 makes to the core Python language.
   of the zero.  (Fixed by Mark T. Dickinson; :issue:`1507`)
 
 * More floating-point features were also added.  The :func:`float` function
-  will now turn the strings ``+nan`` and ``-nan`` into the corresponding
-  IEEE 754 Not A Number values, and ``+inf`` and ``-inf`` into
+  will now turn the string ``nan`` into an
+  IEEE 754 Not A Number value, and ``+inf`` and ``-inf`` into
   positive or negative infinity.  This works on any platform with
   IEEE 754 semantics.  (Contributed by Christian Heimes; :issue:`1635`.)