FinanceAmount
Functions
Add quantities only when identity and precision agree.
Format with the asset's full precision; zero has no negative sign.
Construct a signed exact quantity in the asset's smallest unit.
Negate an exact quantity without changing its asset.
Parse strict decimal text. Reject excess precision; never round silently.
fnrescalerescale(q : Quantity, places : {Int | _ >= 0 && _ <= 255}, policy : FinanceRounding.Policy) : Result(Quantity, FinanceError.Error)#
Change accounting precision for the same asset using an explicit rounding policy.
Subtract quantities, rejecting conflicting asset identities or precision.