toString

open override fun toString(): String(source)

Returns a string representation of this length in meters.


fun toString(unit: LengthUnit = Meters, decimalPlaces: Int = 2): String(source)

Returns a formatted string representation of this length.

Parameters

unit

The unit to display the length in.

decimalPlaces

The number of decimal places to display.