def Decimal.frac.if

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

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

139def Decimal.frac.if(z: Bool, n: Big.BigInt, d: Big.BigInt) ->
140  Maybe<&2, Decimal>:
141  match z:
142    case True{}:
143      None{}
144    case False{}:
145      Decimal.frac.run(Decimal.lowest(n, d))

Uses (6)

Used by (1)