summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libstring.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-02-18 03:49:20 (GMT)
committerFred Drake <fdrake@acm.org>1999-02-18 03:49:20 (GMT)
commit951eea4733816fad445b25d8272b326dc6a8f6f0 (patch)
tree9fc5da780da410caacd62e4877d51ca9ad60c6db /Doc/lib/libstring.tex
parent594b3d66bd9e8c64ab5ca2810bed8699ff36ad7d (diff)
downloadcpython-951eea4733816fad445b25d8272b326dc6a8f6f0.zip
cpython-951eea4733816fad445b25d8272b326dc6a8f6f0.tar.gz
cpython-951eea4733816fad445b25d8272b326dc6a8f6f0.tar.bz2
atof() description: Add information about accepting 'NaN' to produce
the NaN value.
Diffstat (limited to 'Doc/lib/libstring.tex')
-rw-r--r--Doc/lib/libstring.tex8
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/lib/libstring.tex b/Doc/lib/libstring.tex
index 4424863..56dcf6d 100644
--- a/Doc/lib/libstring.tex
+++ b/Doc/lib/libstring.tex
@@ -59,9 +59,11 @@ The functions defined in this module are:
\begin{funcdesc}{atof}{s}
Convert a string to a floating point number. The string must have
the standard syntax for a floating point literal in Python,
- optionally preceded by a sign (\samp{+} or \samp{-}). Note that
- this behaves identical to the built-in function
- \function{float()}\bifuncindex{float} when passed a string.
+ optionally preceded by a sign (\samp{+} or \samp{-}), or be
+ \code{'NaN'} (case insensitive) to indicate the IEEE ``Not a
+ Number'' value. Note that this behaves identical to the built-in
+ function \function{float()}\bifuncindex{float} when passed a
+ string.
\end{funcdesc}
\begin{funcdesc}{atoi}{s\optional{, base}}