
May 11th, 2001, 10:06 AM
|
|
Contributing User
|
|
Join Date: Apr 2001
Posts: 93
Time spent in forums: 3 h 40 m 53 sec
Reputation Power: 8
|
|
|
Rounding Numbers in Perl
Im using Math::Round in a shopping cart back end that Im programming right now and something I noticed that is kind of quirky about this is when I round a number and the result is 125.50 it becomes 125.5, and even had a result where 98.00 was only 98. But, something like 98.54 has all the numbers on it. Does anyone know of a quick fix for this? Im kind of new to perl programming and would appreciate any suggestions that anyone could give me. Thanks very much.
__________________
Dave
|