Ruby 1.9.2p290(2011-07-09revision32553)

missing/finite.c

Go to the documentation of this file.
00001 /* public domain rewrite of finite(3) */
00002 
00003 int
00004 finite(double n)
00005 {
00006     return !isnan(n) && !isinf(n);
00007 }
00008