def Decimal.lowest.by
import bend-kit-bignum@0.1.0.0/decimal.bend as Decimalimport Base
import bend-kit-bignum@0.1.0.0/bigint.bend as Big
93def Decimal.lowest.by(n: Big.BigInt, d: Big.BigInt, +g: Big.BigInt) ->
94 Big.BigInt & Big.BigInt:
95 Decimal.lowest.den(Decimal.quot(Big.BigInt.divmod(n, g)),
96 Decimal.quot(Big.BigInt.divmod(d, g)))