Mega Code Archive

 
Categories / C Tutorial / Math h
 

Nan

Item Value Header filemath.h Declaratinfloat nanf(const char *content);double nan(const char *content);long double nanl(const char *content); Returnreturns a value that is not a number and that contains the string pointed to by content. #include <math.h>   #include <stdio.h>   int main(void)   {      double f;      f = nan("2.0");           printf("%f " , f);   } -1.#IND00