Ruby 2.0.0p353(2013-11-22revision43784)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

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 }
n
ssize_t n
Definition: bigdecimal.c:5655
finite
RUBY_EXTERN int finite(double)
Definition: finite.c:6
missing.h
isinf
RUBY_EXTERN int isinf(double)
Definition: isinf.c:56
isnan
#define isnan(x)
Definition: win32.h:327