getFormattedLength

Creates a LocalizedString that contains a text with a length

Parameters

meters

the length in m


fun getFormattedLength(meters: Double, unitValue: Double, precision: Int, tailingFractionZeros: Boolean): LocalizedString

Creates a LocalizedString that contains a text with a length

Parameters

meters
the length in m
unitValue
factor that determines the technical postfix (1=m, 1000=km, 0.001=mm, ...).
For automatic selection, pass the same value as for `meters`.
precision
see  [LocalizedStringNumber.precision]
tailingFractionZeros
see [LocalizedStringNumber.tailingFractionZeros]