<!--
{
  "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/Int/addingReportingOverflow(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:Si23addingReportingOverflowySi12partialValue_Sb8overflowtSiF"
  },
  "title" : "addingReportingOverflow(_:)"
}
-->

# addingReportingOverflow(_:)

Returns the sum of this value and the given value, along with a Boolean
value indicating whether overflow occurred in the operation.

```
func addingReportingOverflow(_ other: Int) -> (partialValue: Int, overflow: Bool)
```

## Return Value

A tuple containing the result of the addition along with a
Boolean value indicating whether overflow occurred. If the `overflow`
component is `false`, the `partialValue` component contains the entire
sum. If the `overflow` component is `true`, an overflow occurred and
the `partialValue` component contains the truncated sum of this value
and `rhs`.

---

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)