Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Mini = Mini {}
- float2mini :: RealFloat a => a -> Mini
- mini2float :: Fractional a => Mini -> a
Documentation
float2mini :: RealFloat a => a -> Mini Source
Conversion to 0.4.4 format minifloat: This minifloat fits into a byte. It has no sign, four bits of precision, and the range is from 0 to 63488, initially in steps of 1/8. Nice to store quality scores with reasonable precision and range.
mini2float :: Fractional a => Mini -> a Source
Conversion from 0.4.4 format minifloat, see float2mini
.