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
Numbers such as `0.3` or `1.1` cannot be represented exactly using
`Float32` or `Float64`. We can all digits by converting them to
`BigFloat`:
```julia
julia> big(0.3)
0.299999999999999988897769753748434595763683319091796875
julia> big(1.1)
1.100000000000000088817841970012523233890533447265625
```
This PR updates the `Decimal` constructors so that floating point
numbers are converted to `Decimal`s exactly in the sense that
```julia
julia> hash(1.1) == hash(Decimal(1.1))
true
```
FixesJuliaMath#85
This is problematic because then
It can be improved:
The text was updated successfully, but these errors were encountered: