Formats an engine length for display: convert, then label.
Formatting is the one place in this module that allocates, which is a second reason it belongs nowhere near a simulation path.
the engine value
the declared system
Optional
forwarded to Number.prototype.toFixed, which throws RangeError outside 0–100; omitted means no rounding
Number.prototype.toFixed
RangeError
e.g. "150 cm"
"150 cm"
Formats an engine length for display: convert, then label.
Formatting is the one place in this module that allocates, which is a second reason it belongs nowhere near a simulation path.