formatWithUnit
-
formatWithUnit() - formatWithUnit(value: number, unit: number): string
Returns the formatted string of a value and its units. Unit scaling is based on
unit === 1being for millimeters.Parameters
value: number
The value to format (without units).unit: number
The unit scale to be applied tovalue.Returns: string