for my $i (0 .. 10) { print round($i+0.555,2)," "; } # which prints: # 0.56 1.56 2.56 3.56 4.55 5.55 6.55 7.55 8.55 9.55 10.56