Changes between Initial Version and Version 1 of Ticket #5689, comment 6


Ignore:
Timestamp:
Feb 26, 2012, 9:13:32 AM (11 years ago)
Author:
Antony Polukhin

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5689, comment 6

    initial v1  
    22> using 1.48 version of lexical_cast works for "nan" but throws a error for "NaN". I do not think there is a formal specification for Not-A-Number in string form, but "NaN" is a common usage form.[[BR]]
    33
    4 There is a formal specification for Not-A-Number strings. According to standatd strtod, strtof, and strtold, scanf, sscanf and fscanf functions must parse NaN like that:
     4There is a formal specification for Not-A-Number strings. According to standard strtod, strtof, and strtold, scanf, sscanf and fscanf functions must parse NaN like that:
    55{{{
    66The expected form of the subject sequence is an optional plus or minus sign, then one of
     
    2020produces INF, INFINITY, or NAN instead of inf, infinity, or nan,
    2121respectively.
    22 }}}[[BR]]
     22}}}
    2323[[BR]]
    24 Great thanks for reporting this bug![[BR]]
     24Great thanks for reporting this bug!