Contents

string(from:)

Creates and returns a localized string representation of the provided measurement.

Declaration

func string(from measurement: Measurement<Unit>) -> String

Parameters

  • measurement:

    The measurement to be represented.

Return Value

A user-readable string that represents the measurement.

See Also

Converting Measurements