ErrorsValues and types · rule
type.decimal_scale_required
Decimal type has no scale.
Area 2, Values and types; not declinable; the next step is usually the agent's.
type ItemPrice = Decimal { min: 0.00}
error ItemPrice needs a scale
--> main.jadpo:1:6
|1 | type ItemPrice = Decimal { | ^^^^^^^^^ a `Decimal` type
- reason
- A
Decimalis exact with a fixed number of decimal places, itsscale, which sets how it is stored and sent. - next
- Add
scale:with the number of decimal places, such asscale: 2(agent) - rule
- type.
decimal_ scale_ required - help
- https://jadpo.
dev/docs/errors/type. decimal_ scale_ required
Markdown for agents: /docs/errors/type.decimal_scale_required.md.Built from Jadpo main at aee2e8f.