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

# dividedReportingOverflow(by:)

Returns the quotient obtained by dividing this value by the given value,
along with a Boolean value indicating whether overflow occurred in the
operation.

```
func dividedReportingOverflow(by other: Int) -> (partialValue: Int, overflow: Bool)
```

## Return Value

A tuple containing the result of the division along with a
Boolean value indicating whether overflow occurred. If the `overflow`
component is `false`, the `partialValue` component contains the entire
quotient. If the `overflow` component is `true`, an overflow occurred
and the `partialValue` component contains either the truncated quotient
or, if the quotient is undefined, the dividend.

## Discussion

Dividing by zero is not an error when using this method. For a value `x`,
the result of `x.dividedReportingOverflow(by: 0)` is `(x, true)`.

---

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)