Returns true if its argument is finite.
Include
<math.h>
Prototype
int isfinite(floating-point x);
Argument
x
Return Value
Returns true if its argument is finite, i.e. is not infinite or NaN.
Example
#include <math.h>
#include <stdio.h>
int main(void)
{
double x;
int b;
x = 0.0;
b = isfinite(x);
printf("The value %f is %sconsidered finite\n", x, b ? "" : "not ");
}
Example Output
The value 0.000000 is considered finite