Ruby  1.9.3p484(2013-11-22revision43786)
finite.c
Go to the documentation of this file.
1 /* public domain rewrite of finite(3) */
2 
3 #include "ruby/missing.h"
4 
5 int
6 finite(double n)
7 {
8  return !isnan(n) && !isinf(n);
9 }
10