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

# dividingFullWidth(_:)

Returns a tuple containing the quotient and remainder of dividing the
given value by this value.

```
func dividingFullWidth(_ dividend: (high: Int, low: Int.Magnitude)) -> (quotient: Int, remainder: Int)
```

## Parameters

`dividend`

A tuple containing the high and low parts of a
double-width integer. The `high` component of the value carries the
sign, if the type is signed.

## Return Value

A tuple containing the quotient and remainder of `dividend`
divided by this value.

## Discussion

The resulting quotient must be representable within the bounds of the
type. If the quotient of dividing `dividend` by this value is too large
to represent in the type, a runtime error will occur.

---

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)