Skip to content

Fixed unit
@localizer/format-number 1.0.1

fixedUnitFormatter<T> ( unit , options? ): ValueFormatter<T>

Use this formatter to display measurements with a predefined unit.

TIP

If the unit is not predetermined, consider using the unit formatter instead. It dynamically adapts to various units, making it a versatile choice for scenarios where the unit type may vary.