numbers-2007.9.25: Various number typesContentsIndex
Data.Number.Fixed
Description
Numbers with a fixed number of decimals.
Synopsis
data Fixed e
class Epsilon e
data Eps1
data EpsDiv10 p
data Prec10
data Prec50
data PrecPlus20 e
convertFixed :: (Epsilon e, Epsilon f) => Fixed e -> Fixed f
dynamicEps :: forall a . Rational -> (forall e . Epsilon e => Fixed e -> a) -> Rational -> a
precision :: Epsilon e => Fixed e -> Rational
Documentation
data Fixed e
show/hide Instances
class Epsilon e
The Epsilon class contains the types that can be used to determine the precision of a Fixed number.
show/hide Instances
data Eps1
An epsilon of 1, i.e., no decimals.
show/hide Instances
data EpsDiv10 p
A type construct that gives one more decimals than the argument.
show/hide Instances
data Prec10
Ten decimals.
show/hide Instances
data Prec50
50 decimals.
show/hide Instances
data PrecPlus20 e
show/hide Instances
convertFixed :: (Epsilon e, Epsilon f) => Fixed e -> Fixed f
Convert between two arbitrary fixed precision types.
dynamicEps :: forall a . Rational -> (forall e . Epsilon e => Fixed e -> a) -> Rational -> a
precision :: Epsilon e => Fixed e -> Rational
Produced by Haddock version 0.8