modf#
Split a number into integer and fractional parts, both as doubles.
תקציר#
my ($frac, $int) = POSIX::modf(3.75); # (0.75, 3.0)
מה מוחזר#
A two-element list ($frac, $int). Both parts carry the sign of the input.
הבדלים מן ה-upstream#
Fully compatible with upstream POSIX.
ראו גם#
frexp- split into mantissa and exponent instead.