hmpfr-0.4.3: Haskell binding to the MPFR library

Copyright(c) Aleš Bizjak Michal Konečný
LicenseBSD3
Maintainermikkonecny@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell98

Data.Number.MPFR.Assignment

Description

Conversion from basic Haskell types to MPFR. See http://www.mpfr.org/mpfr-current/mpfr.html#Assignment-Functions for documentation on particular functions.

Synopsis

Documentation

int2w :: RoundMode -> Precision -> Word -> Int -> MPFR Source #

x * 2 ^ y

int2i :: RoundMode -> Precision -> Int -> Int -> MPFR Source #

x * 2 ^ y

stringToMPFR Source #

Arguments

:: RoundMode 
-> Precision 
-> Word

Base

-> String 
-> MPFR 

stringToMPFR_ Source #

Arguments

:: RoundMode 
-> Precision 
-> Word

Base

-> String 
-> (MPFR, Int) 

strtofr Source #

Arguments

:: RoundMode 
-> Precision 
-> Word

base

-> String 
-> (MPFR, String) 

strtofr_ Source #

Arguments

:: RoundMode 
-> Precision 
-> Word

base

-> String 
-> (MPFR, String, Int) 

fromString :: String -> Precision -> Word -> MPFR Source #

stringToMPFR with default rounding to Near.