frexp

frexp

ri

 ------------------------------------------------------------- Math#frexp
      Math.frexp(numeric)    => [ fraction, exponent ]
 ------------------------------------------------------------------------
      Returns a two-element array containing the normalized fraction (a
       Float ) and exponent (a  Fixnum ) of _numeric_.
 
         fraction, exponent = Math.frexp(1234)   #=> [0.6025390625, 11]
         fraction * 2**exponent                  #=> 1234.0
 

refe

 Math.frexp
 --- Math.frexp(x)
 
     実数 x の指数部と仮数部を返します。
 

  • 2006/05/15 12:25:10 frexp
  • 2006/05/15 12:37:07 ldexp
  • 2006/05/12 20:07:34 Math