JuliaMath / JuliaMath/Float8s.jl
conversion
Open
bug
- Dominant language
- Julia
- Stars
- 22
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
Just found this
```julia
julia> Float8(0.015)
Float8(0.0625)
julia> Float8(0.02)
Float8(0.015625)
```
although `0.015 <= 0.02` that's not true after conversion. Problem only occurs for subnormals. It's not the conversion back to Float32 (triggered by show):
```julia
julia> bitstring(Float8(0.015))
"00000100"
julia> bitstring(Float8(0.02))
"00000001"
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.