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.
| Parameter | Type | Description | Remarks |
|---|---|---|---|
| value | i64 | The stored value, in the type's base unit. | — |
| factor | i64 | The unit's multiplier (base units per one unit). | — |
| unit | utf8 | The unit label to append. | — |
| returns | utf8 | value / factor followed by the unit label. | — |
wcl
format_unit_value(5242880, 1048576, "MiB") // divide by the factor and label → "5 MiB"