---
title: "addProduct(_:_:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/floatingpoint/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: Self, _ rhs: Self)
```

## Parameters

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