NSMeasurement
A numeric quantity labeled with a unit of measure, with support for unit conversion and unit-aware calculations.
Declaration
class NSMeasurementOverview
Use this object in Swift when you need reference semantics or other Foundation-specific behavior.
An NSMeasurement object represents a quantity and unit of measure. The NSMeasurement class provides a programmatic interface to converting measurements into different units, as well as calculating the sum or difference between two measurements.
NSMeasurement objects are initialized with an Unit object and double value. NSMeasurement objects are immutable, and cannot be changed after being created.
You can use the MeasurementFormatter class to create localized string representations of NSMeasurement objects.