Measurement
A Measurement
is a model type that holds a Double
value associated with a Unit
.
- iOS
- 10.0+
- macOS
- 10.12+
- tvOS
- 10.0+
- watchOS
- 3.0+
struct Measurement<UnitType> where UnitType : Unit
Measurements support a large set of operators, including +
, -
, *
, /
, and a full set of comparison operators.