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

## 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 Float](swift/floating-point-operators-for-float.md)
- [addingProduct(_:_:)](swift/float/addingproduct(_:_:).md)
- [squareRoot()](swift/float/squareroot().md)
- [formSquareRoot()](swift/float/formsquareroot().md)
- [remainder(dividingBy:)](swift/float/remainder(dividingby:).md)
- [formRemainder(dividingBy:)](swift/float/formremainder(dividingby:).md)
- [truncatingRemainder(dividingBy:)](swift/float/truncatingremainder(dividingby:).md)
- [formTruncatingRemainder(dividingBy:)](swift/float/formtruncatingremainder(dividingby:).md)
- [negate()](swift/float/negate().md)
