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

Last Updated: 18 April, 2026