in reply to Re^4: Why am I losing accuracy?
in thread Why am I losing accuracy?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Why am I losing accuracy?
by Anonymous Monk on Jan 12, 2020 at 04:45 UTC | |
by bliako (Abbot) on Jan 13, 2020 at 11:15 UTC |