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