Method: BigDecimal#nan?

Defined in:
bigdecimal.c

#nan?Boolean

Returns True if the value is Not a Number.

Returns:

  • (Boolean)


1207
1208
1209
1210
1211
1212
1213
# File 'bigdecimal.c', line 1207

static VALUE
BigDecimal_IsNaN(VALUE self)
{
    Real *p = GetVpValue(self, 1);
    if (VpIsNaN(p))  return Qtrue;
    return Qfalse;
}