Expand description
Formatting utilities for values and unit expressions.
Consolidates numeric and unit formatting helpers that are used across the CLI, LSP, and internal evaluation pipeline.
Functionsยง
- format_
exponent - Render a unit/dimension exponent suffix:
^2for integers,^(1/2)for rationals (the parenthesized form is re-parseable). - format_
number - format_
unit_ expr - Format a
UnitExpras a human-readable label. E.g.,m,km/hour,kg * m / s^2 - format_
unit_ expr_ canonical - Format a
UnitExprin canonical normalized form for display labels. - format_
unit_ expr_ with_ config - Format a
UnitExpras a human-readable label. E.g.,m,km/hour,kg * m / s^2