toString

open override fun toString(unit: Distance.Unit, decimals: Int, suffixMode: Quantity.SuffixMode, decimalsMode: Quantity.DecimalsMode): String

Returns a string representation for the value from this with the given unit. Depending on decimalsMode, it will show either exactly or at most decimals amount of decimals after the separator. The unit will be suffixed depending on suffixMode.

Note that this string representation is not localized and so is not suitable to be presented to the end-user.


open override fun toString(): String