Changes between Initial Version and Version 1 of Ticket #5689, comment 6
- Timestamp:
- Feb 26, 2012, 9:13:32 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5689, comment 6
initial v1 2 2 > 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]] 3 3 4 There is a formal specification for Not-A-Number strings. According to standa td strtod, strtof, and strtold, scanf, sscanf and fscanf functions must parse NaN like that:4 There 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: 5 5 {{{ 6 6 The expected form of the subject sequence is an optional plus or minus sign, then one of … … 20 20 produces INF, INFINITY, or NAN instead of inf, infinity, or nan, 21 21 respectively. 22 }}} [[BR]]22 }}} 23 23 [[BR]] 24 Great thanks for reporting this bug! [[BR]]24 Great thanks for reporting this bug!