def Decimal.lowest.fix

bend-kit-bignum@0.1.0.0 · decimal.bend:82

import bend-kit-bignum@0.1.0.0/decimal.bend as Decimal
import Base
import bend-kit-bignum@0.1.0.0/bigint.bend as Big

82def Decimal.lowest.fix(neg: Bool, n: Big.BigInt, d: Big.BigInt) ->
83  Big.BigInt & Big.BigInt:
84  match neg:
85    case True{}:
86      (Big.BigInt.neg(n), Big.BigInt.neg(d))
87    case False{}:
88      (n, d)

Uses (5)

Used by (1)