Compartir a través de


_finite, _finitef

 

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.

Syntax

int _finite(   
   double x   
);  
  
int _finitef(   
   float x   
); /* x64 and ARM/ARM64 only */  

Parameters

x
The floating-point value to test.

Return Value

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.

Remarks

The _finite and _finitef functions are Microsoft specific. The _finitef function is only available when compiled for x86, ARM, or ARM64 platforms.

Requirements

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.

.NET Framework Equivalent

System::Double::IsInfinity

See Also

Floating-Point Support
isnan, _isnan, _isnanf
_fpclass, _fpclassf