Export (0) Print
Expand All
and
div
eof
not
or
xor
Expand Minimize

nan, nanf, nanl

Visual Studio 2013

Returns a quiet NaN value.

double nan(
   const char* input 
);
float nanf(
   const char* input 
);
long double nanl(
   const char* input 
);

input

A string value.

The nan functions return a quiet NaN value.

The nan functions return a floating-point value that corresponds to a quiet (non-signalling) NaN. The input value is ignored. For information about how a NaN is represented for output, see printf, _printf_l, wprintf, _wprintf_l.

Function

C header

C++ header

nan, nanf, nanl

<math.h>

<cmath>

Show:
© 2014 Microsoft