Contents

string(from:)

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

Declaration

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

Parameters

  • measurement:

    The measurement to be represented.

Return Value

A user-readable string that represents the measurement.

See Also

Converting Measurements