<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/Float/addingProduct(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:SFsE13addingProductyxx_xtF::SYNTHESIZED::s:Sf"
  },
  "title" : "addingProduct(_:_:)"
}
-->

# addingProduct(_:_:)

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

```
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

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

## Discussion

This method is equivalent to the C `fma` function and implements the
`fusedMultiplyAdd` operation defined by the 
[IEEE 754
specification](http://ieeexplore.ieee.org/servlet/opac?punumber=4610933).

---

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)