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