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


in reply to Rounding off numbers

I always liked
$int = sprintf "%.0f", $float;
which rounds things off nicely.