---
title: "addingProduct(_:_:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/float/addingproduct(_:_:)"
---

# addingProduct(_:_:)

Returns the result of adding the product of the two given values to this value, computed without intermediate rounding.

## Declaration

```swift
func addingProduct(_ lhs: Self, _ rhs: Self) -> Self
```

## Parameters

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

## Return Value

Return Value The product of lhs and rhs, added to this value.

## Discussion

Discussion This method is equivalent to the C fma function and implements the fusedMultiplyAdd operation defined by the IEEE 754 specification.

## See Also

### Performing Calculations

- [Floating-Point Operators for Float](swift/floating-point-operators-for-float.md)
- [addProduct(_:_:)](swift/float/addproduct(_:_:).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)
