formatunitvalue(value: i64, factor: i64, unit: utf8) → utf8

Category: [strings](builtinsstrings)_

Render a number in a unit given its factor explicitly — the primitive behind format_unit for callers that already hold the factor.

ParameterTypeDescriptionRemarks
valuei64The stored value, in the type's base unit.
factori64The unit's multiplier (base units per one unit).
unitutf8The unit label to append.
returnsutf8value / factor followed by the unit label.
wcl
format_unit_value(5242880, 1048576, "MiB")   // divide by the factor and label → "5 MiB"