Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- integer fail ...
July 28, 2005, 7:35 am
rate this thread
Re: integer fail ...
change your print() statements to:
printf "...%30.20f....\n", $track;
... and you will see why. :-)
Then see the answer to your Frequently Asked Question:
Why am I getting long decimals (eg, 19.9499999999999) instead of the
numbers I should be getting (eg, 19.95)?
And you might also benefit from this FAQ:
Does Perl have a round() function? ...
Tad McClellan SGML consulting
email@example.com Perl programming
Fort Worth, Texas