format Method
Format a quantity value using the current spec.
If the formatter is not yet ready, returns value.toString() as a fallback.
format(value: number): string
@returns The formatted string.
| Parameter | Type | Description |
|---|---|---|
| value | number | The numeric value to format. |
Returns - string
The formatted string.
Defined in
- quantity/src/FormatSpecHandle.ts Line 73
Last Updated: 18 April, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.