I believe that if you switch to useing Math::BigFloat you will see this discrepency go away -- at the expense of performance.
Another option, is to stringify all of your numbers as an integer number of the smallest unit you use -- in this case microseconds. In this case, you are gaining precission (over using floats) and performance (over Math::BigFloat) at the cost of value space (ie: large numbers will cause Integer overflow)
In reply to Re: losing precision reading numbers from file
by hossman
in thread losing precision reading numbers from file
by iKnowNothing
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |