You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Division is returning 0 for very small numbers
To Reproduce
The following returns a value of 0, when it shouldn't:
var one = new bigDecimal('200000000000')
var two = new bigDecimal('17453700000.00000000')
var three = new bigDecimal('273484570903.25196072045472431920336519131248')
console.log(one.divide(two).divide(three))
Expected behavior
This should give me a more precise decimal. In particular, it would be nice to have at least 4 (non-zero) values in the form of a.xyz E -1000000 or something like that. Or, allow some way to alter the precision when doing division with very small numbers.
Additional context
No additional context.
The text was updated successfully, but these errors were encountered:
Describe the bug
Division is returning 0 for very small numbers
To Reproduce
The following returns a value of 0, when it shouldn't:
Expected behavior
This should give me a more precise decimal. In particular, it would be nice to have at least 4 (non-zero) values in the form of a.xyz E -1000000 or something like that. Or, allow some way to alter the precision when doing division with very small numbers.
Additional context
No additional context.
The text was updated successfully, but these errors were encountered: