Math.frexp(numeric) â [ fraction, exponent ]
Class Public methods
Returns a two-element array containing the normalized fraction (a
Float
) and exponent (a Fixnum
) of
numeric.
1 2 | fraction, exponent = Math.frexp( 1234 ) #=> [0.6025390625, 11] fraction * 2 **exponent #=> 1234.0 |
Please login to continue.