Îõ³h&Ä¿$      !"# Safe-Inferred ¶ HasBigDecimal×RoundingMode defines how to handle loss of precision in divisions or explicit rounding. HasBigDecimal&Rounding mode to round away from zero. HasBigDecimal$Rounding mode to round towards zero. HasBigDecimal1Rounding mode to round towards positive infinity. HasBigDecimal1Rounding mode to round towards negative infinity. HasBigDecimalðRounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round up. HasBigDecimalòRounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round down. HasBigDecimalˆRounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case, round towards the even neighbor. HasBigDecimalçRounding mode to assert that the requested operation has an exact result, hence no rounding is applied.  HasBigDecimal¬A RoundingAdvice is interpreted by divisions and rounding operations to specify the expected loss of precision and the rounding behaviour. RoundingAdvice is a pair of a  and a target precision of type $ %Ì. The precision defines the number of digits after the decimal point. If &à is given as precision all decimal digits are to be preserved, that is precision is not limited.  HasBigDecimalœBigDecimal is represented by an unscaled Integer value and a Natural that defines the scale E.g.: (BigDecimal 1234 2) represents the decimal value 12.34.  HasBigDecimalthe unscaled Integer value  HasBigDecimal=the scale (i.e. the number of digits after the decimal point) HasBigDecimalcreates a BigDecimal from a ' value.  % defines precision and rounding mode.( HasBigDecimaladd two BigDecimals) HasBigDecimalmultiply two BigDecimals HasBigDecimal'divide two BigDecimals and applies the   (i.e. a tuple of + and the specified precision) for rounding.* HasBigDecimal?divide two correctly scaled Integers and apply the RoundingMode HasBigDecimal"round a BigDecimal according to a   to n digits applying the  rMode HasBigDecimal*match the scales of a tuple of BigDecimals HasBigDecimal-returns the number of digits of a BigDecimal. HasBigDecimalÊremoves trailing zeros from a BigDecimals intValue by decreasing the scale HasBigDecimal(computes the normal form of a BigDecimal HasBigDecimalÂread a BigDecimal from a human readable decimal notation. e.g.  fromString "3.14"  yields 'BigDecimal 314 2' HasBigDecimalÂread a BigDecimal from a human readable decimal notation. e.g.  fromString "3.14"  yields 'BigDecimal 314 2'+ HasBigDecimalÁreturns a readable String representation of a BigDecimal e.g.  toString (BigDecimal 314 2)  yields "3.14" HasBigDecimal construct a   for rounding  with scl decimal digits HasBigDecimal'convert a Natural to any numeric type a HasBigDecimal;the tuple of dividend and divisor. I.e. (dividend, divisor) HasBigDecimal  (i.e. a tuple of Ä and the specified precision) defines the rounding behaviour. if &> if given as precision the maximum possible precision is used. HasBigDecimalthe resulting BigDecimal    Safe-Inferred…  HasBigDecimalŽcomputes the square root of any non-negative BigDecimal, rounding and precision defined by RoundingAdvice. We are using Newton's algorithm." HasBigDecimalÕCompute pi using rounding mode and scale of the specified RoundingAdvice Sources:  4https://wiki.haskell.org/Integers_too_big_for_floats & (https://github.com/eobermuhlner/big-math !"" ! Safe-Inferred²,-./01234      !"#$%&'()*+,'(-'./0123456789:;<,HasBigDecimal-0.2.0.0-4RHP9TC3kpSLU3GGpcBcwBData.BigDecimalData.BigFloatingPaths_HasBigDecimal RoundingModeUPDOWNCEILINGFLOORHALF_UP HALF_DOWN HALF_EVENPRECISERoundingAdvice BigDecimalvaluescale fromRatiodivideroundBD matchScales precisiontrimnf fromStringfromStringMaybehalfUp fromNatural$fOrdBigDecimal$fRealBigDecimal$fEqBigDecimal$fNumBigDecimal$fReadBigDecimal$fShowBigDecimal$fFractionalBigDecimalsqrnthRoot piChudnovsky$fFloatingBigDecimalbase GHC.MaybeMaybe ghc-bignumGHC.Num.NaturalNaturalNothingGHC.RealRationalplusmuldivUsingtoStringversiongetDataFileName getBinDir getLibDir getDynLibDir getDataDir getLibexecDir getSysconfDir