@welldot/render

formatLength

Formats a depth value in metres to the active length unit string, rounded (never raw floating-point) and using the target locale's decimal separator.

formatLength(m, units, locale): string

Formats a depth value in metres to the active length unit string, rounded (never raw floating-point) and using the target locale's decimal separator.

Parameters

m

number

units

LengthUnits

locale

"en" | "pt"

Returns

string