Module

Data.Currency.Rounding

Package
purescript-currency
Repository
philippedev101/purescript-currency

#RoundingMode Source

data RoundingMode

Rounding modes for operations that may produce fractional minor units.

Constructors

Instances

#roundDiv Source

roundDiv :: RoundingMode -> BigInt -> BigInt -> BigInt

Integer division with a specified rounding mode. Given a numerator and a divisor, returns the quotient rounded according to the mode.