string(fromMeters:)
Returns a length string for the provided value.
Declaration
func string(fromMeters numberInMeters: Double) -> StringParameters
- numberInMeters:
The length’s value in meters.
Return Value
A string that combines a value and a unit string appropriate for the formatter’s locale.
Discussion
This method converts the provided length into units appropriate for the formatter’s locale.