diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-03-21 00:49:25 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-03-21 00:49:25 +0000 |
commit | eda3c2fecd7f40841f1823416e1012faab11797d (patch) | |
tree | 5645014e8e0c99d8771125dcb59928044c1de130 /mpfr.texi | |
parent | 8cb6c7f4decaac9ff40325a689e7e222804754f1 (diff) | |
download | mpfr-eda3c2fecd7f40841f1823416e1012faab11797d.tar.gz |
mpfr.texi: corrected mpfr_strtofr documentation ("NAN()" is accepted).
tests/tstrtofr.c: added a test for "NAN()".
Note: the code follows the ISO C99 standard for strtod, as explained
in the mpfr_strtofr documentation, so that the code was correct.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/2.4@6131 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mpfr.texi')
-rw-r--r-- | mpfr.texi | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1159,8 +1159,8 @@ stops at the character @code{0}. Special data (for infinities and NaN) can be @code{@@inf@@} or @code{@@nan@@(n-char-sequence)}, and if @math{@var{base} @le{} 16}, it can also be @code{infinity}, @code{inf}, @code{nan} or -@code{nan(n-char-sequence)}, all case insensitive. -A @code{n-char-sequence} is a non-empty string containing only digits, +@code{nan(n-char-sequence-opt)}, all case insensitive. +A @code{n-char-sequence-opt} is a possibly empty string containing only digits, Latin letters and the underscore (0, 1, 2, @dots{}, 9, a, b, @dots{}, z, A, B, @dots{}, Z, _). Note: one has an optional sign for all data, even NaN. |