<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/UnitConverterLinear/init(coefficient:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSUnitConverterLinear(im)initWithCoefficient:"
  },
  "title" : "init(coefficient:)"
}
-->

# init(coefficient:)

Initializes the unit converter with the coefficient you specify.

```
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:)`](/documentation/Foundation/UnitConverterLinear/init(coefficient:constant:)), passing `0` for the `constant` parameter.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)