Ruby 2.0.0p247(2013-06-27revision41674)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

isnan.c
Go to the documentation of this file.
1 /* public domain rewrite of isnan(3) */
2
3 #include "ruby/missing.h"
4
5 static int double_ne(double n1, double n2);
6
7 int
8 isnan(double n)
9 {
10 return double_ne(n, n);
11 }
12
13 static int
14 double_ne(double n1, double n2)
15 {
16 return n1 != n2;
17 }
18