Contents

string(fromMeters:)

Returns a length string for the provided value.

Declaration

func string(fromMeters numberInMeters: Double) -> String

Parameters

  • 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.

See Also

Formatting Length Strings