HasBigDecimal-0.1.1: A library for arbitrary precision decimal numbers.

Safe HaskellSafe
LanguageHaskell2010

Data.BigFloating

Contents

Synopsis

Documentation

piChudnovsky :: MathContext -> BigDecimal Source #

Compute pi using rounding mode and scale of the specified MathContext Sources: https://wiki.haskell.org/Integers_too_big_for_floats & https://github.com/eobermuhlner/big-math

sqr :: BigDecimal -> MathContext -> BigDecimal Source #

computes the square root of any non-negative BigDecimal, rounding and precision defined by MathContext. We are using Newton's algorithm.

Orphan instances