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
The addition did not work for two numbers with exponents `q1` and `q2`
such that `d = abs(q1 - q2) > 18` because it led to a power `10^d` which
overflows for `d>18`. This commit makes that `10` a `BigInt` to prevent
overflow.
FixesJuliaMath#62
barucden
added a commit
to barucden/Decimals.jl
that referenced
this issue
Oct 2, 2024
The addition did not work for two numbers with exponents `q1` and `q2`
such that `d = abs(q1 - q2) > 18` because it led to a power `10^d` which
overflows for `d>18`. This commit makes that `10` a `BigInt` to prevent
overflow.
Besides that, the code is simplified a little.
FixesJuliaMath#62
I observed this behaviour using Decimals v0.4.1 and Julia 1.10.5 (latest):
The text was updated successfully, but these errors were encountered: