MRTCanonicalUnit
|
@interface MRTCanonicalUnit : NSObject |
Represents a unit with the value and measurement separated.
Summary
Class methods
|
+ (nonnull MRTCanonicalUnit *)canonicalUnitWithUnit:(nonnull NSString *)unit |
Properties
|
@property (nonatomic, readonly, nonnull) NSString *unit; |
|
@property (nonatomic, readonly) double value; |
Class methods
canonicalUnitWithUnit:value:
|
+ (nonnull MRTCanonicalUnit *)canonicalUnitWithUnit:(nonnull NSString *)unit |
Properties
unit
|
@property (nonatomic, readonly, nonnull) NSString *unit; |
The unit of measurement.
value
|
@property (nonatomic, readonly) double value; |
The numerical value.