<!--
{
  "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/isMultiple(of:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:SZss17FixedWidthIntegerRzrlE10isMultiple2ofSbx_tF::SYNTHESIZED::s:Si"
  },
  "title" : "isMultiple(of:)"
}
-->

# isMultiple(of:)

Returns `true` if this value is a multiple of the given value, and `false`
otherwise.

```
func isMultiple(of other: Self) -> Bool
```

## Parameters

`other`

The value to test.

## Discussion

For two integers *a* and *b*, *a* is a multiple of *b* if there exists a
third integer *q* such that *a = q*b*. For example, *6* is a multiple of
*3* because *6 = 2*3*. Zero is a multiple of everything because *0 = 0*x*
for any integer *x*.

Two edge cases are worth particular attention:

- `x.isMultiple(of: 0)` is `true` if `x` is zero and `false` otherwise.
- `T.min.isMultiple(of: -1)` is `true` for signed integer `T`, even
  though the quotient `T.min / -1` isn’t representable in type `T`.

---

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)