isnormal(x)
bool isnormal (float x);bool isnormal (double x);bool isnormal (long double x);
int
float
double
long double
bool
true
false
1234567891011
/* isnormal example */ #include <stdio.h> /* printf */ #include <math.h> /* isnormal */ int main() { printf ("isnormal(1.0) : %d\n",isnormal(1.0)); printf ("isnormal(0.0) : %d\n",isnormal(0.0)); printf ("isnormal(1.0/0.0): %d\n",isnormal(1.0/0.0)); return 0; }
isnormal(1.0) : 1 isnormal(0.0) : 0 isnormal(1.0/0.0): 0