in reply to Re: Round down to '.5' or '.0'
in thread Round down to '.5' or '.0'

Hell, why stop there?
sub round_to_nths { my ($num, $n) = @_; (int $num*$n)/$n }
Now you and me can reuse our rounding code all day, giggling as the split-based solution chokes on a well-placed $num = '123E-1'...