ruby--ruby/missing/finite.c

7 lines
67 B
C

int
finite(n)
double n;
{
return !isnan(n) && !isinf(n);
}