Instance Method

convert(to:)

Converts the measurement to the specified unit.

Declaration

mutating func convert(to otherUnit: UnitType)
Available when UnitType conforms to Dimension.

Parameters

otherUnit

A unit of the same Dimension.

See Also

Converting to Other Units

func converted(to: UnitType) -> Measurement<UnitType>

Returns a new measurement created by converting to the specified unit.