Hi John, What about the function sprintf ? I think you can use something like my $decimale = 10.2345678879;
The number sprintf("%.6f", $decimale) is what you are look for, isn't? I did this test my $number = 10.5432634657656; my $result = 0; $result = sprintf("%.6f", $number); print "$result"; Cheers, On 19/06/07, John Townsend <[EMAIL PROTECTED]> wrote:
I'm trying to truncate a number, 10.25233006477356, to 6 decimal points. E.g. 10.252330. I don't need to round the number, I just want it to drop everything after the 6th decimal point. This should be easy, but I'm drawing a blank. Thanks _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs