An object representing a numeric quantity with a unit of measure that bridges to
NSMeasurement when you need reference semantics or other Foundation-specific behavior.
- iOS 10.0+
- macOS 10.12+
- tvOS 10.0+
- watchOS 3.0+
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
NSMeasurement objects are immutable, and cannot be changed after being created.
You can use the
Measurement class to create localized string representations of