@@ -231,13 +231,17 @@ \section{Built-in Functions \label{built-in-funcs}}
231231\begin {funcdesc }{float}{x}
232232 Convert a string or a number to floating point. If the argument is a
233233 string, it must contain a possibly signed decimal or floating point
234- number, possibly embedded in whitespace, or be \code {'NaN'} (case
235- insensitive); this behaves identical to
236- \code {string.atof(\var {x})}. If the string is \code {'NaN'}, the
237- IEEE `` Not a Number'' value is returned. Otherwise, the argument
238- may be a plain or long integer or a floating point number, and a
239- floating point number with the same value (within Python's floating
240- point precision) is returned.
234+ number, possibly embedded in whitespace; this behaves identical to
235+ \code {string.atof(\var {x})}. Otherwise, the argument may be a plain
236+ or long integer or a floating point number, and a floating point
237+ number with the same value (within Python's floating point
238+ precision) is returned.
239+
240+ \strong {Note:} When passing in a string, values for NaN\index {NaN}
241+ and Infinity\index {Infinity} may be returned, depending on the
242+ underlying C library. The specific set of strings accepted which
243+ cause these values to be returned depends entirely on the C library
244+ and is known to vary.
241245\end {funcdesc }
242246
243247\begin {funcdesc }{getattr}{object, name}
0 commit comments