def Decimal.quot

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

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

60# The quotient of a division whose divisor is known to be nonzero.
61def Decimal.quot(m: Maybe<&1, Big.BigInt & Big.BigInt>) -> Big.BigInt:
62  match m:
63    case Some{(q, r)}:
64      q
65    case None{}:
66      Big.BigInt.zero()

Uses (5)

Used by (1)