ruby/missing/finite.c

10 строки
129 B
C

/* public domain rewrite of finite(3) */
#include "ruby/missing.h"
int
finite(double n)
{
return !isnan(n) && !isinf(n);
}