Class YRTCanonicalUnit

Represents a unit with the value and measurement separated.

Class Methods

Properties

unit

The unit of measurement.

value

The numerical value.

Method Detail

+canonicalUnitWithUnit:value:

+ (nonnull YRTCanonicalUnit *)canonicalUnitWithUnit:(nonnull NSString *)unit
                                              value:(double)value 

Property Detail

unit

(assign, readonly) NSString * unit

The unit of measurement.

value

(assign, readonly) double value

The numerical value.