Ruby 1.9.3p194(2012-04-20revision35410)

missing/finite.c

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