#! perl -slw use strict; use POSIX qw[ modf ]; my $float = 2.543; my( $fract, $integral ) = modf( $float ); print "$integral - $fract"; __END__ P:\test>462825 2 - 0.543
In reply to Re: Coping with decimals
by BrowserUk
in thread Coping with decimals
by Ruanae
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |