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

[ bsd3, library, numeric ] [ Propose Tags ] [ Report a vulnerability ]

Please see the README on GitHub at https://github.com/jcranch/Mantissa#readme


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Change log CHANGELOG.md
Dependencies base (>=4.7 && <5) [details]
License BSD-3-Clause
Copyright 2024 James Cranch
Author James Cranch
Maintainer cranch@cantab.net
Category Numeric
Home page https://github.com/jcranch/mantissa#readme
Bug tracker https://github.com/jcranch/mantissa/issues
Source repo head: git clone https://github.com/jcranch/mantissa
Uploaded by jcranch at 2024-09-04T09:33:30Z
Distributions NixOS:0.1.0.0, Stackage:0.1.0.0
Downloads 38 total (11 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2024-09-04 [all 1 reports]

Readme for Mantissa-0.1.0.0

[back to package description]

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.