summaryrefslogtreecommitdiffstats
path: root/missing/finite.c
blob: 8d0b7af262bbda281b66d4a88be51ca559d55ed6 (plain)
1
2
3
4
5
6
7
/* public domain rewrite of finite(3) */

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