Skip to main content

Module num

Module num 

Source
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 f64 canonically (integers without a trailing .0 noise).
number
Build an f64-domain number value.
point
Build a 2D point value [x, y].