BSD-3-Clause licensed by James Cranch
Maintained by [email protected]
This version can be pinned in stack with:Mantissa-0.1.0.0@sha256:10b02c6cc447526a1215d86a01ce9baa5a7dd308f26a49044d6626a35e7e04d3,1898

Module documentation for 0.1.0.0

Depends on 1 package(full list with versions):

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.

Changes

Changelog for Mantissa

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to the Haskell Package Versioning Policy.

Unreleased

0.1.0.0 - 2024-09-04

Initial release.

  • Boxed and unboxed versions
  • Basic arithmetic
  • Basic conversions
  • Num, Fractional, Eq and Ord instances