MikeMcl/decimal.js

Possible computation bug?

yovanoc opened this issue · 0 comments

Idk if I miss something but found an interesting bug today with the latest version.

const res = new Decimal(1).div(70000).sub(new Decimal(1).div(75000));
console.log(res.eq(0.000000952380952), res);

log

false 9.52380952380952381e-7

same numbers but with 12 in front