Initializer

init(coefficient:)

Initializes the unit converter with the specified coefficient.

Declaration

convenience init(coefficient: Double)

Parameters

coefficient

The coefficient used in the linear unit conversion calculation.

Return Value

A unit converter initialized with the specified coefficient.

Discussion

Calling this initializer is equivalent to calling initWithCoefficient:constant, passing 0 for the constant parameter.