Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect division of large numbers #56

Closed
robsmith11 opened this issue Jul 26, 2023 · 0 comments · Fixed by #84
Closed

Incorrect division of large numbers #56

robsmith11 opened this issue Jul 26, 2023 · 0 comments · Fixed by #84

Comments

@robsmith11
Copy link

I had expected this to work:

julia> Decimal(10)^30 / Decimal(2)^100
Decimal(0, 0, 0)

With python:

In [9]: 10**30 / 2**100
Out[9]: 0.7888609052210118
@barucden barucden mentioned this issue Oct 26, 2024
barucden added a commit to barucden/Decimals.jl that referenced this issue Nov 3, 2024
Fixes JuliaMath#56

We now have:
```julia
julia> Decimal(10)^30 / Decimal(2)^100
0.7888609052210118054117285655
```

In Python:
```
>>> Decimal(10)**30 / Decimal(2)**100
Decimal('0.7888609052210118054117285655')
```
barucden added a commit to barucden/Decimals.jl that referenced this issue Nov 4, 2024
Fixes JuliaMath#56

We now have:
```julia
julia> Decimal(10)^30 / Decimal(2)^100
0.7888609052210118054117285655
```

In Python:
```
>>> Decimal(10)**30 / Decimal(2)**100
Decimal('0.7888609052210118054117285655')
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant