Round numbers
round_numbers
Round-numbers strategy — reduce float precision.
RoundNumbersStrategy
Bases: SmeltStrategy
Recursively round floats to precision decimal places.
Source code in packages/axm-smelt/src/axm_smelt/strategies/round_numbers.py
category
property
Strategy category (cosmetic).
name
property
Strategy identifier used in the registry.
apply(ctx)
Round float values to the configured precision.
Uses ctx.parsed for the JSON path and falls back to
regex-based rounding on plain text (e.g. post-tabular output).
Propagates the rounded object as parsed on the returned
context.