lode/types/decimal
:decimal — arbitrary-precision decimal, backed by dee (a pure-Gleam port
of Elixir’s Decimal, so rounding and equality semantics match Ecto).
cast/load are lenient: they accept a native VDecimal, a numeric string
(VString), or an Int/Float. dump is canonical and always emits
VDecimal, so the value travels to the adapter as a real decimal rather than
text. equal is numeric equality (1.50 == 1.5) via decimal.eq.
Values
pub fn decimal() -> type_.LodeType(decimal.Decimal)