#include <stdio.h>
#include <math.h>
int main(void)
{
printf("isfinite(-1.0) %d\n", isfinite(-1.0));
printf("isfinite(1.0) %d\n", isfinite(1.0));
printf("isfinite(1.0/0.0) %d\n", isfinite(1.0/0.0));
return 0;
}
isfinite(-1.0) 1
isfinite(1.0) 1
isfinite(1.0/0.0) 0
19.30.isfinite |
| 19.30.1. | int isfinite(fpval): Returns nonzero if fpval is finite. |