Copyright | (c) Michal Konecny |
---|---|
License | BSD3 |
Maintainer | mikkonecny@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
Conversions and comparisons of arbitrary precision floating point numbers
Currently, we use hmpfr when compiling with ghc 7.10 and higher and haskell-mpfr when compiling with ghc 7.8.
- toDoubleUp :: MPFloat -> Double
- toDoubleDown :: MPFloat -> Double
- type CanBeMPFloat t = ConvertibleExactly t MPFloat
- mpFloat :: CanBeMPFloat t => t -> MPFloat
- fromIntegerUp :: Precision -> Integer -> MPFloat
- fromIntegerDown :: Precision -> Integer -> MPFloat
- fromRationalUp :: Precision -> Rational -> MPFloat
- fromRationalDown :: Precision -> Rational -> MPFloat
MPFloat to other types (see also instances)
toDoubleUp :: MPFloat -> Double Source #
toDoubleDown :: MPFloat -> Double Source #
MPFloat constructors (see also instances)
type CanBeMPFloat t = ConvertibleExactly t MPFloat Source #
mpFloat :: CanBeMPFloat t => t -> MPFloat Source #