biohazard-0.6.5: bioinformatics support library

Safe HaskellNone
LanguageHaskell98

Data.MiniFloat

Synopsis

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.