def Rational.to_decimal
import bend-kit-bignum@0.1.0.0/rational.bend as Rationalimport Base
import bend-kit-bignum@0.1.0.0/decimal.bend as Dec
40# The exact decimal, or None when it repeats (den has a factor besides 2, 5).
41def Rational.to_decimal(r: Rational) -> Maybe<&2, Dec.Decimal>:
42 match r:
43 case Rational{n, d}:
44 Dec.Decimal.from_fraction(n, d)
Uses (4)
Used by (0)
No other definition uses this definition.