diff options
Diffstat (limited to 'missing/finite.c')
-rw-r--r-- | missing/finite.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/missing/finite.c b/missing/finite.c new file mode 100644 index 0000000000..07fe3263e9 --- /dev/null +++ b/missing/finite.c @@ -0,0 +1,6 @@ +int +finite(n) + double n; +{ + return !isnan(n) && !isinf(n); +} |