Just found this
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> bitstring(Float8(0.015))
"00000100"
julia> bitstring(Float8(0.02))
"00000001"
Just found this
although
0.015 <= 0.02that's not true after conversion. Problem only occurs for subnormals. It's not the conversion back to Float32 (triggered by show):