frexp#
Split a floating-point number into mantissa and exponent.
תקציר#
my ($frac, $exp) = POSIX::frexp($x);
## $x == $frac * 2**$exp, with 0.5 <= |$frac| < 1 (or $frac == 0).
מה מוחזר#
A two-element list: the fractional part as a double and the exponent as an integer.
הבדלים מן ה-upstream#
Fully compatible with upstream POSIX.
ראו גם#
ldexp- the inverse operation: reassemble$xfrom$fracand$exp.modf- split into integer and fractional parts instead.