API Reference > imodeljs-frontend > QuantityFormatting > QuantityFormatter > constructor constructor Method constructor QuantityFormatter(showMetricOrUnitSystem?: boolean | UnitSystemKey): QuantityFormatter Parameter Type Description showMetricOrUnitSystem boolean | UnitSystemKey Pass in true to show Metric formatted quantity values. Defaults to Imperial. To explicitlyset it to a specific unit system pass a UnitSystemKey. Returns - QuantityFormatter Defined in core/frontend/src/quantity-formatting/QuantityFormatter.ts Line 346 Last Updated: 11 June, 2024