Expand description
Numeric helpers shared by the math lenses.
The math lenses display values from the numeric domains (sim-lib-numbers-*)
by reading their canonical literal as f64 for layout. The runtime value
stays the authoritative number; this is a display projection only.
Functions§
- as_f64
- Read a number value’s canonical literal as
f64, if it is a number. - format_
f64 - Format an
f64canonically (integers without a trailing.0noise). - number
- Build an
f64-domain number value. - point
- Build a 2D point value
[x, y].