ooopsy! I was sidetracked by totally misunderstood a previous comment thinking that these are whole-number divisions(=right shifts) like dividing by 10. Anyway, in this case the solution is to substitute Math::BigInt with Math::BigFloat in my previous post. Then you get the right result. BTW in Linux the command bc does arbitrary precision arithmetic and can be used to verify these numbers.
But why not use Math::GMPz as syphilis suggested and given that unexplained, to me, loop-incrementing bug.
bw, bliako
In reply to Re^5: Why am I losing accuracy?
by bliako
in thread Why am I losing accuracy?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |