toString

open override fun toString(): String

Returns a string representation of this speed value in SpeedUnit.KILOMETERS_PER_HOUR.


fun toString(unit: SpeedUnit): String

Returns a string representation of this speed value expressed in the given unit.

Return

the value of speed in the specified unit followed by that unit abbreviated name: km/h, MPH or m/s