Mantissa-0.1.0.0: Reals in the interval [0,1), as machine words
Safe HaskellSafe-Inferred
LanguageHaskell2010

Numeric.Mantissa

Description

Real numbers in [0,1), represented as fixed-point reals stored in a machine word.

Fractional would arguably be a better name, but is of course already in use.

Synopsis

Documentation

data Mantissa Source #

A real number in [0,1), represented as a boxed word

Constructors

M# Mantissa# 

oneMinusE :: Mantissa Source #

The largest possible mantissa, just a tiny bit less than one

mantissaToFractional :: Fractional a => Mantissa -> a Source #

Convert a mantissa to any Fractional type, implemented using fromRational