long double nanl(const char *c);
qNaN with the contents of the location indicated by c or 0 (when qNaN is not supported)
The nan("c string") call is equivalent to strtod("NAN(c string)", (char**) NULL). The nanf and nanl calls are equivalent to the corresponding strtof and strtold calls, respectively.