strtod-test.c and atof("NaN")



The HP-UX 10.20 atof() and strtod() don't parse
atof("NaN")/strtod("NaN",NULL). This is resolved in HP-UX 10.30+. So,
should strtod-test.c assume the system atof() can handle "NaN"? Or
just live with the error:
** ERROR **: file strtod-test.c: line 88: assertion failed: (isnan (our_nan))

-- 
albert chin (china thewrittenword com)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]