variable-precision-0.1.1: variable-precision floating point

Portabilityportable
Stabilitystable
Maintainerclaudiusmaximus@goto10.org
Safe HaskellSafe-Infered

Numeric.VariablePrecision.Float.Aliases

Description

Boilerplate definitions generated by:

 flip mapM_ [1..53] $ \p -> let s = show p in
   putStrLn $ "type F" ++ s ++ " = VFloat N" ++ s ++
     " ; f" ++ s ++ " :: F" ++ s ++ " ; f" ++ s ++ " = 0"

Along with aliases for recodeFloat with specialized types.

Using this module in ghc-7.0.4 might require -fcontext-stack=100.

Synopsis

Documentation

toFloat :: F24 -> FloatSource

Convert to a Float from the same precision.

fromFloat :: Float -> F24Source

Convert from a Float to the same precision.

toDouble :: F53 -> DoubleSource

Convert to a Double from the same precision.

fromDouble :: Double -> F53Source

Convert from a Double to the same precision.