Instance Method

initWithDoubleValue:unit:

Initializes a new measurement with a specified double-precision floating-point value and unit.

Declaration

- (instancetype)initWithDoubleValue:(double)doubleValue unit:(UnitType)unit;

Parameters

value

The double-precision floating-point measurement value.

unit

The unit of measure.

Return Value

A measurement initialized to have the specified double-precision floating-point value and unit.