March Docs

FinanceRounding

Types

typePolicyPolicy = Exact | TowardZero | AwayFromZero | Floor | Ceiling | HalfAway | HalfEven#

Functions

fndividedivide(n : BigInt.BigInt, d : BigInt.BigInt, policy : Policy) : Result(BigInt.BigInt, FinanceError.Error)#

Divide signed integers with an explicit policy; denominator must be positive.

fnpower10power10(places : {Int | _ >= 0 && _ <= 255}) : BigInt.BigInt#