in reply to Rounding without int() or printf()
$num++ if $num =~ s#\.(\d*)## && "5" le $1; [download]
Though this "rounds" things like 1.23e14 to 1e14 !