| Copyright | (c) Michal Konecny |
|---|---|
| License | BSD3 |
| Maintainer | mikkonecny@gmail.com |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell98 |
AERN2.MP.UseMPFR.Float.Conversions
Contents
Description
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.
Synopsis
- 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 #
toDoubleDown :: MPFloat -> Double #
MPFloat constructors (see also instances)
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 #