DBL2NUM 4866 array.c if (n == Qnil) return DBL2NUM(INFINITY); DBL2NUM 5793 array.c return DBL2NUM(f); DBL2NUM 5796 array.c v = DBL2NUM(f); DBL2NUM 5782 bignum.c return DBL2NUM(rb_big2dbl(x) + RFLOAT_VALUE(y)); DBL2NUM 5811 bignum.c return DBL2NUM(rb_big2dbl(x) - RFLOAT_VALUE(y)); DBL2NUM 5885 bignum.c return DBL2NUM(rb_big2dbl(x) * RFLOAT_VALUE(y)); DBL2NUM 6015 bignum.c return DBL2NUM(rb_big2dbl(x) / RFLOAT_VALUE(y)); DBL2NUM 6119 bignum.c if (l > INT_MAX) return DBL2NUM(INFINITY); DBL2NUM 6120 bignum.c if (l < INT_MIN) return DBL2NUM(0.0); DBL2NUM 6123 bignum.c return DBL2NUM(ldexp(big2dbl(z), (int)l)); DBL2NUM 6172 bignum.c return DBL2NUM(dx / dy); DBL2NUM 6226 bignum.c return DBL2NUM(pow(rb_big2dbl(x), d)); DBL2NUM 7822 compile.c return DBL2NUM(*dblp); DBL2NUM 22 complex.c #define RFLOAT_0 DBL2NUM(0) DBL2NUM 160 complex.c return DBL2NUM(rb_str_to_dbl(x, 0)); DBL2NUM 588 complex.c x = DBL2NUM(real); DBL2NUM 590 complex.c y = DBL2NUM(imag); DBL2NUM 593 complex.c y = f_mul(x, DBL2NUM(sin(arg))); DBL2NUM 594 complex.c x = f_mul(x, DBL2NUM(cos(arg))); DBL2NUM 747 complex.c a = signbit(v) ? DBL2NUM(-1.0) : DBL2NUM(1.0); DBL2NUM 750 complex.c b = signbit(v) ? DBL2NUM(-1.0) : DBL2NUM(1.0); DBL2NUM 1702 complex.c return DBL2NUM(rb_cstr_to_dbl(s, 0)); DBL2NUM 2781 enum.c if (n == Qnil) return DBL2NUM(INFINITY); DBL2NUM 3647 enum.c v = DBL2NUM(f); DBL2NUM 3778 enum.c return DBL2NUM(memo.f); DBL2NUM 12 ext/-test-/float/nextafter.c return DBL2NUM(z); DBL2NUM 28 ext/-test-/float/nextafter.c return DBL2NUM(z); DBL2NUM 2449 ext/date/date_core.c argv2[1] = DBL2NUM(GREGORIAN); DBL2NUM 2536 ext/date/date_core.c argv2[3] = DBL2NUM(GREGORIAN); DBL2NUM 2618 ext/date/date_core.c argv2[2] = DBL2NUM(GREGORIAN); DBL2NUM 2700 ext/date/date_core.c argv2[3] = DBL2NUM(GREGORIAN); DBL2NUM 2785 ext/date/date_core.c argv2[4] = DBL2NUM(GREGORIAN); DBL2NUM 2856 ext/date/date_core.c argv2[4] = DBL2NUM(GREGORIAN); DBL2NUM 5322 ext/date/date_core.c return DBL2NUM(m_sg(dat)); DBL2NUM 5648 ext/date/date_core.c nth = f_floor(DBL2NUM(i)); DBL2NUM 5907 ext/date/date_core.c return d_lite_plus(self, DBL2NUM(-RFLOAT_VALUE(other))); DBL2NUM 7024 ext/date/date_core.c DBL2NUM(m_sg(dat))); DBL2NUM 7049 ext/date/date_core.c DBL2NUM(m_sg(dat))); DBL2NUM 7085 ext/date/date_core.c sg = DBL2NUM(RTEST(sg) ? GREGORIAN : JULIAN); DBL2NUM 9186 ext/date/date_core.c rb_define_const(cDate, "JULIAN", DBL2NUM(JULIAN)); DBL2NUM 9191 ext/date/date_core.c rb_define_const(cDate, "GREGORIAN", DBL2NUM(GREGORIAN)); DBL2NUM 13359 ext/ripper/ripper.c v = DBL2NUM(d); DBL2NUM 15780 ext/ripper/ripper.c lit = DBL2NUM(-RFLOAT_VALUE(lit)); DBL2NUM 7610 ext/ripper/ripper.y v = DBL2NUM(d); DBL2NUM 10031 ext/ripper/ripper.y lit = DBL2NUM(-RFLOAT_VALUE(lit)); DBL2NUM 8781 gc.c rb_hash_aset(prof, ID2SYM(rb_intern("GC_TIME")), DBL2NUM(record->gc_time)); DBL2NUM 8782 gc.c rb_hash_aset(prof, ID2SYM(rb_intern("GC_INVOKE_TIME")), DBL2NUM(record->gc_invoke_time)); DBL2NUM 8788 gc.c rb_hash_aset(prof, ID2SYM(rb_intern("GC_MARK_TIME")), DBL2NUM(record->gc_mark_time)); DBL2NUM 8789 gc.c rb_hash_aset(prof, ID2SYM(rb_intern("GC_SWEEP_TIME")), DBL2NUM(record->gc_sweep_time)); DBL2NUM 9007 gc.c return DBL2NUM(time); DBL2NUM 1675 marshal.c v = DBL2NUM(d); DBL2NUM 70 math.c return DBL2NUM(dy); DBL2NUM 72 math.c return DBL2NUM(M_PI); DBL2NUM 73 math.c return DBL2NUM(-M_PI); DBL2NUM 80 math.c return (dy < 0.0) ? DBL2NUM(-dz) : DBL2NUM(dz); DBL2NUM 84 math.c return (dy < 0.0) ? DBL2NUM(-dz) : DBL2NUM(dz); DBL2NUM 88 math.c return DBL2NUM(atan2(dy, dx)); DBL2NUM 110 math.c return DBL2NUM(cos(Get_Double(x))); DBL2NUM 131 math.c return DBL2NUM(sin(Get_Double(x))); DBL2NUM 152 math.c return DBL2NUM(tan(Get_Double(x))); DBL2NUM 177 math.c return DBL2NUM(acos(d)); DBL2NUM 201 math.c return DBL2NUM(asin(d)); DBL2NUM 220 math.c return DBL2NUM(atan(Get_Double(x))); DBL2NUM 248 math.c return DBL2NUM(cosh(Get_Double(x))); DBL2NUM 276 math.c return DBL2NUM(sinh(Get_Double(x))); DBL2NUM 304 math.c return DBL2NUM(tanh(Get_Double(x))); DBL2NUM 329 math.c return DBL2NUM(acosh(d)); DBL2NUM 349 math.c return DBL2NUM(asinh(Get_Double(x))); DBL2NUM 375 math.c if (d == -1.0) return DBL2NUM(-INFINITY); DBL2NUM 376 math.c if (d == +1.0) return DBL2NUM(+INFINITY); DBL2NUM 377 math.c return DBL2NUM(atanh(d)); DBL2NUM 399 math.c return DBL2NUM(exp(Get_Double(x))); DBL2NUM 445 math.c return DBL2NUM(d); DBL2NUM 520 math.c if (d == 0.0) return DBL2NUM(-INFINITY); DBL2NUM 522 math.c return DBL2NUM(log2(d) + numbits); /* log2(d * 2 ** numbits) */ DBL2NUM 560 math.c if (d == 0.0) return DBL2NUM(-INFINITY); DBL2NUM 562 math.c return DBL2NUM(log10(d) + numbits * log10(2)); /* log10(d * 2 ** numbits) */ DBL2NUM 599 math.c if (d == 0.0) return DBL2NUM(0.0); DBL2NUM 600 math.c return DBL2NUM(sqrt(d)); DBL2NUM 641 math.c return DBL2NUM(cbrt(Get_Double(x))); DBL2NUM 662 math.c return rb_assoc_new(DBL2NUM(d), INT2NUM(exp)); DBL2NUM 678 math.c return DBL2NUM(ldexp(Get_Double(x), NUM2INT(n))); DBL2NUM 694 math.c return DBL2NUM(hypot(Get_Double(x), Get_Double(y))); DBL2NUM 714 math.c return DBL2NUM(erf(Get_Double(x))); DBL2NUM 734 math.c return DBL2NUM(erfc(Get_Double(x))); DBL2NUM 851 math.c return DBL2NUM(fact_table[(int)d - 1]); DBL2NUM 854 math.c return DBL2NUM(tgamma(d)); DBL2NUM 881 math.c return rb_assoc_new(DBL2NUM(INFINITY), INT2FIX(1)); DBL2NUM 883 math.c v = DBL2NUM(lgamma_r(d, &sign)); DBL2NUM 957 math.c rb_define_const(rb_mMath, "PI", DBL2NUM(M_PI)); DBL2NUM 959 math.c rb_define_const(rb_mMath, "PI", DBL2NUM(atan(1.0)*4.0)); DBL2NUM 964 math.c rb_define_const(rb_mMath, "E", DBL2NUM(M_E)); DBL2NUM 966 math.c rb_define_const(rb_mMath, "E", DBL2NUM(exp(1.0))); DBL2NUM 862 numeric.c return DBL2NUM(-RFLOAT_VALUE(flt)); DBL2NUM 876 numeric.c return DBL2NUM(RFLOAT_VALUE(x) + (double)FIX2LONG(y)); DBL2NUM 879 numeric.c return DBL2NUM(RFLOAT_VALUE(x) + rb_big2dbl(y)); DBL2NUM 882 numeric.c return DBL2NUM(RFLOAT_VALUE(x) + RFLOAT_VALUE(y)); DBL2NUM 900 numeric.c return DBL2NUM(RFLOAT_VALUE(x) - (double)FIX2LONG(y)); DBL2NUM 903 numeric.c return DBL2NUM(RFLOAT_VALUE(x) - rb_big2dbl(y)); DBL2NUM 906 numeric.c return DBL2NUM(RFLOAT_VALUE(x) - RFLOAT_VALUE(y)); DBL2NUM 924 numeric.c return DBL2NUM(RFLOAT_VALUE(x) * (double)FIX2LONG(y)); DBL2NUM 927 numeric.c return DBL2NUM(RFLOAT_VALUE(x) * rb_big2dbl(y)); DBL2NUM 930 numeric.c return DBL2NUM(RFLOAT_VALUE(x) * RFLOAT_VALUE(y)); DBL2NUM 952 numeric.c return DBL2NUM(RFLOAT_VALUE(x) / (double)f_y); DBL2NUM 956 numeric.c return DBL2NUM(RFLOAT_VALUE(x) / d); DBL2NUM 959 numeric.c return DBL2NUM(RFLOAT_VALUE(x) / RFLOAT_VALUE(y)); DBL2NUM 1060 numeric.c return DBL2NUM(ruby_float_mod(RFLOAT_VALUE(x), fy)); DBL2NUM 1102 numeric.c b = DBL2NUM(mod); DBL2NUM 1137 numeric.c return DBL2NUM(pow(dx, dy)); DBL2NUM 1512 numeric.c return DBL2NUM(val); DBL2NUM 1664 numeric.c return DBL2NUM(y); DBL2NUM 1716 numeric.c return DBL2NUM(y); DBL2NUM 1768 numeric.c return DBL2NUM(f); DBL2NUM 1826 numeric.c return DBL2NUM(ceil(number * f) / f); DBL2NUM 2008 numeric.c return DBL2NUM(round(number * f) / f); DBL2NUM 2041 numeric.c *num = DBL2NUM(0); DBL2NUM 2236 numeric.c if (n) rb_yield(DBL2NUM(beg)); DBL2NUM 2239 numeric.c VALUE val = DBL2NUM(beg); DBL2NUM 2247 numeric.c rb_yield(DBL2NUM(d)); DBL2NUM 2263 numeric.c return DBL2NUM(INFINITY); DBL2NUM 2281 numeric.c if (isinf(n)) return DBL2NUM(n); DBL2NUM 2289 numeric.c case 0: return DBL2NUM(INFINITY); DBL2NUM 2365 numeric.c *to = desc ? DBL2NUM(-INFINITY) : DBL2NUM(INFINITY); DBL2NUM 3233 numeric.c return DBL2NUM((double)FIX2LONG(x) + RFLOAT_VALUE(y)); DBL2NUM 3290 numeric.c return DBL2NUM((double)FIX2LONG(x) - RFLOAT_VALUE(y)); DBL2NUM 3335 numeric.c return DBL2NUM((double)FIX2LONG(x) * RFLOAT_VALUE(y)); DBL2NUM 3376 numeric.c return DBL2NUM((double)FIX2LONG(x) / (double)FIX2LONG(y)); DBL2NUM 3382 numeric.c return DBL2NUM((double)FIX2LONG(x) / RFLOAT_VALUE(y)); DBL2NUM 3428 numeric.c return DBL2NUM(div); DBL2NUM 3515 numeric.c return DBL2NUM(ruby_float_mod((double)FIX2LONG(x), RFLOAT_VALUE(y))); DBL2NUM 3595 numeric.c b = DBL2NUM(mod); DBL2NUM 3698 numeric.c return DBL2NUM(INFINITY); DBL2NUM 3715 numeric.c if (RFLOAT_VALUE(y) == 0.0) return DBL2NUM(1.0); DBL2NUM 3717 numeric.c return DBL2NUM(RFLOAT_VALUE(y) < 0 ? INFINITY : 0.0); DBL2NUM 3719 numeric.c if (a == 1) return DBL2NUM(1.0); DBL2NUM 3724 numeric.c return DBL2NUM(pow((double)a, dy)); DBL2NUM 4336 numeric.c return DBL2NUM(val); DBL2NUM 5151 numeric.c rb_define_const(rb_cFloat, "MIN", DBL2NUM(DBL_MIN)); DBL2NUM 5157 numeric.c rb_define_const(rb_cFloat, "MAX", DBL2NUM(DBL_MAX)); DBL2NUM 5164 numeric.c rb_define_const(rb_cFloat, "EPSILON", DBL2NUM(DBL_EPSILON)); DBL2NUM 5168 numeric.c rb_define_const(rb_cFloat, "INFINITY", DBL2NUM(INFINITY)); DBL2NUM 5172 numeric.c rb_define_const(rb_cFloat, "NAN", DBL2NUM(NAN)); DBL2NUM 1131 object.c return DBL2NUM(0.0); DBL2NUM 2897 object.c *valp = DBL2NUM(fix2dbl_without_to_f(val)); DBL2NUM 2913 object.c *valp = DBL2NUM(big2dbl_without_to_f(val)); DBL2NUM 2916 object.c *valp = DBL2NUM(rat2dbl_without_to_f(val)); DBL2NUM 2932 object.c return DBL2NUM(rb_str_to_dbl(val, TRUE)); DBL2NUM 1573 pack.c UNPACK_PUSH(DBL2NUM((double)tmp)); DBL2NUM 1587 pack.c UNPACK_PUSH(DBL2NUM((double)tmp)); DBL2NUM 1601 pack.c UNPACK_PUSH(DBL2NUM(tmp)); DBL2NUM 1613 pack.c UNPACK_PUSH(DBL2NUM(tmp)); DBL2NUM 1627 pack.c UNPACK_PUSH(DBL2NUM((double)tmp)); DBL2NUM 1641 pack.c UNPACK_PUSH(DBL2NUM(tmp)); DBL2NUM 13283 parse.c v = DBL2NUM(d); DBL2NUM 15704 parse.c lit = DBL2NUM(-RFLOAT_VALUE(lit)); DBL2NUM 7610 parse.y v = DBL2NUM(d); DBL2NUM 10031 parse.y lit = DBL2NUM(-RFLOAT_VALUE(lit)); DBL2NUM 6918 process.c utime = DBL2NUM(buf.tms_utime / hertz); DBL2NUM 6919 process.c stime = DBL2NUM(buf.tms_stime / hertz); DBL2NUM 6920 process.c cutime = DBL2NUM(buf.tms_cutime / hertz); DBL2NUM 6921 process.c cstime = DBL2NUM(buf.tms_cstime / hertz); DBL2NUM 7015 process.c return DBL2NUM(d); DBL2NUM 7036 process.c return DBL2NUM(d); DBL2NUM 1271 random.c return DBL2NUM(RFLOAT_VALUE(v) + RFLOAT_VALUE(f)); DBL2NUM 1442 random.c return DBL2NUM(genrand_real(&rnd->mt)); DBL2NUM 498 range.c return DBL2NUM(-convert.d); DBL2NUM 502 range.c return DBL2NUM(convert.d); DBL2NUM 150 rational.c return DBL2NUM(rb_str_to_dbl(x, 0)); DBL2NUM 5320 string.c return DBL2NUM(rb_str_to_dbl(str, FALSE)); DBL2NUM 561 time.c return DBL2NUM((double)c); DBL2NUM 563 time.c v = DBL2NUM((double)FIXWV2WINT(w)); DBL2NUM 564 time.c return quo(v, DBL2NUM(TIME_SCALE)); DBL2NUM 571 time.c return quo(v, DBL2NUM(TIME_SCALE)); DBL2NUM 1110 vm_eval.c return DBL2NUM(INFINITY);