description | title | ms.date | f1_keywords | helpviewer_keywords | |||
---|---|---|---|---|---|---|---|
Learn more about: isnormal | isnormal | 01/31/2019 |
|
|
Determines whether a floating-point value is a normal value.
intisnormal( /* floating-point */x ); /* C-only macro */template<classFloatingType>inlineboolisnormal( FloatingTypex ) throw(); /* C++-only function template */
x
The floating-point value to test.
isnormal
returns a nonzero value (true
in C++ code) if the argument x
isn't zero, subnormal, infinite, or a NaN. Otherwise, isnormal
returns 0 (false
in C++ code).
isnormal
is a macro when compiled as C, and an inline function template when compiled as C++.
Function | Required header (C) | Required header (C++) |
---|---|---|
isnormal | <math.h> | <math.h> or <cmath> |
For more compatibility information, see Compatibility.
Math and floating-point supportisfinite
, _finite
, _finitef
isinf
isnan
, _isnan
, _isnanf
_fpclass
, _fpclassf