constructor Method
constructor
QuantityFormatter(showMetricOrUnitSystem?: boolean | UnitSystemKey): QuantityFormatter
| Parameter | Type | Description | 
|---|---|---|
| showMetricOrUnitSystem | boolean | UnitSystemKey | Pass in trueto show Metric formatted quantity values. Defaults to Imperial. To explicitlyset it to a specific unit system pass a UnitSystemKey. | 
Returns - QuantityFormatter
Defined in
Last Updated: 24 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.