Expand description
Canonical numeric formatting used for computed Workshop values.
Functions§
- format_
number - Format a float like the reference frontend: integers print without a
decimal point, and non-integers print the shortest round-trip
representation truncated to 16 significant digits (OverPy behavior;
evidence: the pinned oracle snapshots). A non-integer keeps its shortest
representation when truncation would make the emitted value integral.
Non-finite values take the reference’s
String(n)spellingsInfinity,-Infinity, andNaN(pinned OverPy 9.7.10 emission forlog(0)andlog(-1)folds; #358). These spellings are emission-only: without Workshop client-acceptance evidence the canonical grammar admits no non-finite literal, andwirvalidation rejects non-finite number values. - format_
setting_ number - Format a settings number: the shortest decimal that round-trips, so a value read from a project is written back unchanged.