init(doubleValue:unit:)
Initializes a new measurement with a specified double-precision floating-point value and unit.
Declaration
init(doubleValue: Double, unit: Unit)Parameters
- doubleValue:
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.