I would use Math::Round. It is easy to use. For example:
prints '1.56'.use Math::Round; print nearest(.01, 1.555);
In reply to Re: How do I round a number?
by ryanus
in thread How do I round a number?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |