in reply to
limit of for loop!!
... or, use
printf
:
printf "%.3f\n", $a;
[download]
This is a FAQ:
Why am I getting long decimals (eg, 19.9499999999999) instead of the numbers I should be getting (eg, 19.95)?
Comment on
Re: limit of for loop!!
Download
Code
In Section
Seekers of Perl Wisdom