Portability | non-portable |
---|---|

Stability | experimental |

Maintainer | ales.bizjak0@gmail.com |

Conversion from MPFR to basic Haskell types. See MPFR manual for detailed documentation.

- 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

fitsUShort :: RoundMode -> MPFR -> BoolSource

fitsSShort :: RoundMode -> MPFR -> BoolSource

Output a string in base 10 rounded to Near in exponential form.