JuliaMath / JuliaMath/Decimals.jl

large powers "underflow" to incorrect answers

Open
#115 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
62
Forks
24
PR merge metrics
No merged PRs in 30d

Description

You seem to be hitting some negative exponent limit and silently giving the wrong answer:
```jl
julia> (dec"0.1") .^ (10 .^ (1:10))
10-element Vector{Decimal}:
1E-10
1E-100
1E-1000
1E-10000
1E-100000
1E-1000000
0E-1000026
0E-1000026
0E-1000026
0E-1000026
```
Suggestion: underflow to `0.0`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.