I'm stuggling to figure out how multiplication works. Seems there can be a possible bug but I'm not sure.
For example
const result = Decimal.mul('11111111111111111111111111', 10).toFixed()
result will be 111111111111111111110000000
and for
console.log(Decimal.mul('1111111111111111111', 10).toFixed())
result will be 11111111111111111110
Why in first example I'm getting additional zeroes in the end?
Greetings!
I'm stuggling to figure out how multiplication works. Seems there can be a possible bug but I'm not sure.
For example
const result = Decimal.mul('11111111111111111111111111', 10).toFixed()
result will be111111111111111111110000000
and forconsole.log(Decimal.mul('1111111111111111111', 10).toFixed())
result will be11111111111111111110
Why in first example I'm getting additional zeroes in the end?