_finite, _finitef
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at _finite, _finitef.
Determines whether a floating-point value is finite.
int _finite( double x ); int _finitef( float x ); /* x64 and ARM/ARM64 only */
Parameters
x
The floating-point value to test.
Both _finite and _finitef return a nonzero value if the argument x is finite; that is, if –INF < x < +INF. It returns 0 if the argument is infinite or a NAN.
The _finite and _finitef functions are Microsoft specific. The _finitef function is only available when compiled for x86, ARM, or ARM64 platforms.
| Function | Required header (C) | Required header (C++) |
|---|---|---|
_finite | <float.h> or <math.h> | <float.h>, <math.h>, <cfloat>, or <cmath> |
_finitef | <math.h> | <math.h> or <cmath> |
For more compatibility information, see Compatibility.
Floating-Point Support
isnan, _isnan, _isnanf
_fpclass, _fpclassf
Show: