develooper Front page | perl.beginners | Postings from February 2002

Number Truncation/Rounding

Thread Next
Balint, Jess
February 13, 2002 10:28
Number Truncation/Rounding
Message ID:
Hello all. I have a script that uses alot of data and calculates a
cumulative percent of this data. That cumulative percent should be 100.00 at
the end. What I get is:


I need to truncate this to 2 decimal places and hopefully round it to
100.00. Thanks in advance.


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About