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.