toFloat

fun toFloat(unit: SpeedUnit): Float

Returns the value of this speed expressed as an Float number of the specified unit.