Instance Method


Converts the measurement to the specified unit.


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



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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software