int isnormal(fpval): Returns nonzero if fpval is a normal value
#include <stdio.h>
#include <math.h>
int main(void)
{
printf("isnormal(-1.0) %d\n", isnormal(-1.0));
printf("isnormal(1.0) %d\n", isnormal(1.0));
printf("isnormal(0.0) %d\n", isnormal(0.0));
return 0;
}
/*
isnormal(-1.0) 1
isnormal(1.0) 1
isnormal(0.0) 0
*/
Related examples in the same category