Contents

init(coefficient:)

Initializes the unit converter with the coefficient you specify.

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 init(coefficient:constant:), passing 0 for the constant parameter.

See Also

Creating Unit Converters