Copyright | (c) Aleš Bizjak |
---|---|

License | BSD3 |

Maintainer | mikkonecny@gmail.com |

Stability | experimental |

Portability | non-portable |

Safe Haskell | None |

Language | Haskell98 |

For documentation on particular functions see http://www.mpfr.org/mpfr-current/mpfr.html#Miscellaneous-Functions.

- nextToward :: MPFR -> MPFR -> MPFR
- nextAbove :: MPFR -> MPFR
- nextBelow :: MPFR -> MPFR
- maxD :: RoundMode -> Precision -> MPFR -> MPFR -> MPFR
- minD :: RoundMode -> Precision -> MPFR -> MPFR -> MPFR
- newRandomStatePointer :: Ptr GmpRandState
- urandomb :: Ptr GmpRandState -> Precision -> MPFR
- getExp :: MPFR -> Exp
- setExp :: MPFR -> Exp -> MPFR
- signbit :: MPFR -> Bool
- maxD_ :: RoundMode -> Precision -> MPFR -> MPFR -> (MPFR, Int)
- minD_ :: RoundMode -> Precision -> MPFR -> MPFR -> (MPFR, Int)
- getPrec :: MPFR -> Precision
- getMantissa :: MPFR -> Integer
- one :: MPFR
- zero :: MPFR
- maxPrec :: MPFR -> MPFR -> Precision

# Documentation

getMantissa :: MPFR -> Integer Source #

getMantissa and getExp return values such that

d = getMantissa d * 2^(getExp d - ceiling ((getPrec d) / bitsPerMPLimb)* bitsPerMPLimb )

In case of `0`

, `NaN`

or `+-Inf`

getMantissa will return `0`