Expand description
Canonical number-to-text for property values, the inverse of the float parsing core already owns.
Functionsยง
- fmt_num
- Format an f64 without noisy trailing zeros (
1.0->1,1.50->1.5), and otherwise with the shortest digits that parse back to the same value (what JSString(n)shows for the same value in the ranges that matter).