ldexp(p1, p2)
public
Returns the value of flt*(2**int).
fraction, exponent = Math.frexp(1234)
Math.ldexp(fraction, exponent)
Show source
static VALUE
math_ldexp(VALUE obj, VALUE x, VALUE n)
{
Need_Float(x);
return DBL2NUM(ldexp(RFLOAT_VALUE(x), NUM2INT(n)));
}