def Decimal.show
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
230# Plain notation with every scale digit: -12.50, 0.001, 7. Never an exponent.
231def Decimal.show(d: Decimal) -> String:
232 match d:
233 case Decimal{+u, s}:
234 Decimal.show.sign(Cmp.is_lt(Big.BigInt.cmp(u, Big.BigInt.zero())),
235 Decimal.show.point(s, Big.BigInt.show(Big.BigInt.abs(u))))
Uses (9)
Used by (0)
No other definition uses this definition.