Q&A > math > How do I round a number? - Answer contributed by ryanus
I would use Math::Round. It is easy to use. For example:
print nearest(.01, 1.555);
Yes, I watch meteor showers
No, I do not watch meteor showers
My meteors prefer to bathe
Results (174 votes). Check out past polls.