type Decimal
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
5# The value is unscaled / 10^scale. Scale is kept as written, so 1.50 stays
6# 1.50 (money keeps its cents); cmp is numeric, and normalize strips trailing
7# zeros. No operation rounds: an inexact request answers None.
8type Decimal is Data:
9 Decimal{unscaled: Big.BigInt, scale: Nat}