共用方式為


_finite

Determines whether the given double-precision floating-point value is finite.

int _finite( 
   double x 
);

Parameters

  • x
    Double-precision floating-point value.

Return Value

_finite returns a nonzero value if its argument x is not infinite; that is, if –INF < x < +INF. It returns 0 if the argument is infinite or a NAN.

Requirements

Function

Required header

_finite

<float.h>

For more compatibility information, see Compatibility in the Introduction.

.NET Framework Equivalent

System::Double::IsInfinity

See Also

Reference

Floating-Point Support

_isnan

_fpclass