http://www.perlmonks.org?node_id=1000742


in reply to Best way to round a number.

Somewhat related: Re^4: Round time to nearest 15 or 30 minutes