Closed Eduard-Voiculescu closed 1 year ago
Time: 100 prec cargo run 1.35s user 0.02s system 93% cpu 1.461 total
Time: 200 prec cargo run 2.18s user 0.02s system 94% cpu 2.332 total
Time: 1000 prec cargo run 14.66s user 0.07s system 99% cpu 14.870 total
Time: 10000 prec cargo run 685.34s user 3.47s system 99% cpu 11:31.39 total
fixed, the issue was just an off-by-one.
Amount:
1.0001
Exponent:50580
Result:157.2516065180034170437593941810943348656947086171955950186834396686314552174742355550114493361303974
Expected Result:157.2358829297104459991594782332771
Result returned by a simple javascript using bigdecimal: