in reply to
Numbers....
You could try something like:
$a = 10.8766756; $b = sprintf("%.2f", $a);
[download]
This will round the number up/down. The 2f means to two decimal places so in this case you will get 10.88
Rounds up if next digit is >= 5.
Comment on
RE: Numbers....
Download
Code
In Section
Seekers of Perl Wisdom