Home / Docs / Standard library / Prelude
json_decimal
Release v0.4.0Edition 0.5 preview
A function of the prelude, in scope in every module. Edition 0.5 preview.
una
pub json_decimal[T](x: T) -> JsonA Decimal[s] as a JSON number: Number at scale 0, Decimal otherwise (spec/29 §16).
Specification
Generated from the standard modules of una v0.4.0 (docs/std/listing.json, which is not part of the specification). The specification governs: spec/14 §1.