Ruby 2.7.0p0(2019-12-25revision647ee6f091eafcce70ffb75ddf7e121e192ab217)

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 }
finite
int finite(double n)
Definition: finite.c:6
isnan
#define isnan(x)
Definition: win32.h:369
isinf
#define isinf(__x)
Definition: rb_mjit_min_header-2.7.0.h:3673
n
const char size_t n
Definition: rb_mjit_min_header-2.7.0.h:5456
missing.h