Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.28 KB

isnormal.md

File metadata and controls

52 lines (37 loc) · 1.28 KB
descriptiontitlems.datef1_keywordshelpviewer_keywords
Learn more about: isnormal
isnormal
01/31/2019
isnormal
math/isnormal
isnormal function

isnormal

Determines whether a floating-point value is a normal value.

Syntax

intisnormal( /* floating-point */x ); /* C-only macro */template<classFloatingType>inlineboolisnormal( FloatingTypex ) throw(); /* C++-only function template */

Parameters

x
The floating-point value to test.

Return value

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).

Remarks

isnormal is a macro when compiled as C, and an inline function template when compiled as C++.

Requirements

FunctionRequired header (C)Required header (C++)
isnormal<math.h><math.h> or <cmath>

For more compatibility information, see Compatibility.

See also

Math and floating-point support
isfinite, _finite, _finitef
isinf
isnan, _isnan, _isnanf
_fpclass, _fpclassf

close