Copyright | (c) Aleš Bizjak Michal Konečný |
---|---|
License | BSD3 |
Maintainer | mikkonecny@gmail.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell98 |
Conversion from basic Haskell types to MPFR. See http://www.mpfr.org/mpfr-current/mpfr.html#Assignment-Functions for documentation on particular functions.
- set :: RoundMode -> Precision -> MPFR -> MPFR
- set_ :: RoundMode -> Precision -> MPFR -> (MPFR, Int)
- fromWord :: RoundMode -> Precision -> Word -> MPFR
- fromInt :: RoundMode -> Precision -> Int -> MPFR
- fromDouble :: RoundMode -> Precision -> Double -> MPFR
- fromWord_ :: RoundMode -> Precision -> Word -> (MPFR, Int)
- fromInt_ :: RoundMode -> Precision -> Int -> (MPFR, Int)
- fromDouble_ :: RoundMode -> Precision -> Double -> (MPFR, Int)
- int2w :: RoundMode -> Precision -> Word -> Int -> MPFR
- int2i :: RoundMode -> Precision -> Int -> Int -> MPFR
- int2w_ :: RoundMode -> Precision -> Word -> Int -> (MPFR, Int)
- int2i_ :: RoundMode -> Precision -> Int -> Int -> (MPFR, Int)
- stringToMPFR :: RoundMode -> Precision -> Word -> String -> MPFR
- stringToMPFR_ :: RoundMode -> Precision -> Word -> String -> (MPFR, Int)
- strtofr :: RoundMode -> Precision -> Word -> String -> (MPFR, String)
- strtofr_ :: RoundMode -> Precision -> Word -> String -> (MPFR, String, Int)
- setInf :: Precision -> Int -> MPFR
- setNaN :: Precision -> MPFR
- fromIntegerA :: RoundMode -> Precision -> Integer -> MPFR
- bitsInInteger :: Num a => Integer -> a
- compose :: RoundMode -> Precision -> (Integer, Int) -> MPFR
- fromString :: String -> Precision -> Word -> MPFR
Documentation
bitsInInteger :: Num a => Integer -> a Source #
fromString :: String -> Precision -> Word -> MPFR Source #
stringToMPFR
with default rounding to Near.