bend-kit-bignum
Search uses release 0.1.0.0 · 136 definitions
Definitions (136)
- type Rationalnum / den with den > 0 and gcd(num, den) = 1, so zero is 0/1 and equal values are equal terms.
- def Rational.low
- def Rational.normn / d for a nonzero d.
- def Rational.from_bigint
- def Rational.make.if
- def Rational.maken / d in lowest terms, or None when d is zero.
- def Rational.from_decimal
- def Rational.to_decimalThe exact decimal, or None when it repeats (den has a factor besides 2, 5).
- def Rational.neg
- def Rational.is_zero
- def Rational.add
- def Rational.sub
- def Rational.mul
- def Rational.diva / b, or None when b is zero.
- def Rational.cmpDenominators are positive, so cross-multiplying keeps the order.
- def Rational.show.if
- def Rational.show"n/d", or "n" when the denominator is 1.
- def Rational.read.frac
- def Rational.read.dec
- def Rational.read.parts
- def Rational.read"n/d" with BigInt sides (normalized; a zero d is None), or any number Decimal.read takes, such as "-1.25" or "3e-2".