hmpfr-0.2.1: Haskell binding to MPFR librarySource codeContentsIndex
Data.Number.MPFR.Conversion
Portabilitynon-portable
Stabilityexperimental
Maintainerales.bizjak0@gmail.com
Description
Conversion from MPFR to basic Haskell types. See MPFR manual for detailed documentation.
Synopsis
toDouble :: RoundMode -> MPFR -> Double
toDouble2exp :: RoundMode -> MPFR -> (Double, Int)
toInt :: RoundMode -> MPFR -> Int
toWord :: RoundMode -> MPFR -> Word
mpfrToString :: RoundMode -> Word -> Word -> MPFR -> (String, Exp)
fitsULong :: RoundMode -> MPFR -> Bool
fitsSLong :: RoundMode -> MPFR -> Bool
fitsUInt :: RoundMode -> MPFR -> Bool
fitsSInt :: RoundMode -> MPFR -> Bool
fitsUShort :: RoundMode -> MPFR -> Bool
fitsSShort :: RoundMode -> MPFR -> Bool
decompose :: MPFR -> (Integer, Exp)
toStringExp :: Word -> MPFR -> String
toString :: Word -> MPFR -> String
Documentation
toDouble :: RoundMode -> MPFR -> DoubleSource
toDouble2exp :: RoundMode -> MPFR -> (Double, Int)Source
toInt :: RoundMode -> MPFR -> IntSource
toWord :: RoundMode -> MPFR -> WordSource
mpfrToStringSource
:: RoundMode
-> Wordnumber of decimals
-> Wordbase
-> MPFR
-> (String, Exp)
fitsULong :: RoundMode -> MPFR -> BoolSource
fitsSLong :: RoundMode -> MPFR -> BoolSource
fitsUInt :: RoundMode -> MPFR -> BoolSource
fitsSInt :: RoundMode -> MPFR -> BoolSource
fitsUShort :: RoundMode -> MPFR -> BoolSource
fitsSShort :: RoundMode -> MPFR -> BoolSource
decompose :: MPFR -> (Integer, Exp)Source
toStringExpSource
:: Wordnumber of digits
-> MPFR
-> String
Output a string in base 10 rounded to Near in exponential form.
toString :: Word -> MPFR -> StringSource
Output a string in base 10 rounded to Near. The difference from toStringExp is that it won't output in exponential form if it is sensible to do so.
Produced by Haddock version 2.4.2