---
title: "addProduct(_:_:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/double/addproduct(_:_:)"
---

# addProduct(_:_:)

Adds the product of the two given values to this value in place, computed without intermediate rounding.

## Declaration

```swift
mutating func addProduct(_ lhs: Double, _ rhs: Double)
```

## Parameters

- `lhs`: One of the values to multiply before adding to this value.
- `rhs`: The other value to multiply.

## See Also

### Performing Calculations

- [Floating-Point Operators for Double](swift/floating-point-operators-for-double.md)
- [addingProduct(_:_:)](swift/double/addingproduct(_:_:).md)
- [squareRoot()](swift/double/squareroot().md)
- [formSquareRoot()](swift/double/formsquareroot().md)
- [remainder(dividingBy:)](swift/double/remainder(dividingby:).md)
- [formRemainder(dividingBy:)](swift/double/formremainder(dividingby:).md)
- [truncatingRemainder(dividingBy:)](swift/double/truncatingremainder(dividingby:).md)
- [formTruncatingRemainder(dividingBy:)](swift/double/formtruncatingremainder(dividingby:).md)
- [negate()](swift/double/negate().md)
