Description
Reals in the interval [0,1), as machine words.
Description
Please see the README on GitHub at https://github.com/jcranch/Mantissa#readme
README.md
Mantissa
Reals in the interval [0,1), implemented as machine words. Boxed and unboxed variants are available.
Arithmetic is available; addition and subtraction is taken modulo 1. On the whole, the user is responsible for ensuring that, when these numbers are produced by division (in any of several possible ways), the result will be in the interval [0,1).
Nomenclature
As of 2024, most people would call this concept a fractional part, but the name Fractional is already in use in Haskell base for something different. Thus we use the slightly obscure name mantissa.