finite

Determines if the value is finite.

Library:LibC
Classification:Other
Service:Math

Syntax

  #include <math.h> 
   
  int finite (
     double   x);
  

Parameters

x

(IN) Specifies the value to evaluate.

Return Values

Returns 1 if x is a finite number.

Returns 0 if x is equal to infinity or is not a number (NaN).

See Also