C/math.h/nan — различия между версиями

Материал из C\C++ эксперт
Перейти к: навигация, поиск
м (1 версия: Импорт контента...)
 
(нет различий)

Версия 14:20, 25 мая 2010

nan: returns a value that is not a number and that contains *content

    
//Declaratin: float nanf(const char *content); 
              double nan(const char *content); 
              long double nanl(const char *content);  
 
    
  
 
  #include <math.h>
  #include <stdio.h>
  int main(void)
  {
     double f;
     f = nan("2.0");
    
     printf("%f " , f);
  }
         
        /*
        -1.#IND00
        */