@hackage Mantissa0.1.0.0

Reals in the interval [0,1), as machine words

  • Installation

  • Dependencies (1)

  • Dependents (0)

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.