⭐ in reply to How do I round a number?
I would use Math::Round. It is easy to use. For example:
use Math::Round; print nearest(.01, 1.555); [download]