in reply to
decimal point
If you want to do anything with the numbers besides print them right to the screen, you can use sprintf like so:
$two_decimal_number = sprintf "%0.2f", $x;
[download]
then the variable $two_decimal_number will contain the number in the format you're looking for. You can then print it or manipulate it or whatever.
Comment on
Re: decimal point
Download
Code
In Section
Seekers of Perl Wisdom