hmpfr-0.1.1: Haskell binding to MPFR library

Portabilitynon-portable
Stabilityexperimental
Maintainerales.bizjak0@gmail.com

Data.Number.MPFR.Conversion

Description

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

Synopsis

Documentation

mpfrToStringSource

Arguments

:: RoundMode 
-> Word

number of decimals

-> Word

base

-> MPFR 
-> (String, Exp) 

toStringExpSource

Arguments

:: Word

number 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.