def Rational.show.if

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

import bend-kit-bignum@0.1.0.0/rational.bend as Rational
import Base
import bend-kit-bignum@0.1.0.0/bigint.bend as Big

82def Rational.show.if(whole: Bool, n: Big.BigInt, d: Big.BigInt) -> String:
83  match whole:
84    case True{}:
85      Big.BigInt.show(n)
86    case False{}:
87      Big.BigInt.show(n) ++ "/" ++ Big.BigInt.show(d)

Uses (5)

Used by (1)