in reply to limit of for loop!!

And if you just want to display it nice, use printf "%.3f\n", $a;. This is covered in perlfaq4

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.