Ruby  1.9.3p392(2013-02-22revision39386)
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