---
title: Integer Operators
framework: swift
role: collectionGroup
role_heading: API Collection
path: swift/integer-operators
---

# Integer Operators

Perform arithmetic and bitwise operations or compare values.

## Topics

### Arithmetic

- [+(_:_:)](swift/int/+(_:_:).md)
- [-(_:_:)](swift/int/-(_:_:).md)
- [*(_:_:)](swift/int/*(_:_:).md)
- [/(_:_:)](swift/int/_(_:_:)-7j9bj.md)

### Arithmetic with Assignment

- [+=(_:_:)](swift/int/+=(_:_:).md)
- [*=(_:_:)](swift/int/*=(_:_:).md)
- [/=(_:_:)](swift/int/_=(_:_:)-9lzpe.md)

### Masked Arithmetic

- [&+(_:_:)](swift/int/&+(_:_:).md)
- [&-(_:_:)](swift/int/&-(_:_:).md)
- [&*(_:_:)](swift/int/&*(_:_:).md)
- [&+=(_:_:)](swift/int/&+=(_:_:).md)
- [&-=(_:_:)](swift/int/&-=(_:_:).md)
- [&*=(_:_:)](swift/int/&*=(_:_:).md)

### Bitwise Operations

- [&(_:_:)](swift/int/&(_:_:).md)
- [&=(_:_:)](swift/int/&=(_:_:).md)
- [~(_:)](swift/int/~(_:).md)

### Negation

- [-(_:)](swift/int/-(_:).md)
- [+(_:)](swift/int/+(_:).md)

### Comparison

- [==(_:_:)](swift/int/==(_:_:).md)
- [==(_:_:)](swift/int/==(_:_:)-1zalu.md)
- [!=(_:_:)](swift/int/!=(_:_:)-4jphg.md)

### Range Expressions

- [...(_:_:)](swift/int/'...(_:_:).md)
- [...(_:)](swift/int/'...(_:)-6ct66.md)
- [...(_:)](swift/int/'...(_:)-4mm5u.md)

### Deprecated

- [-=(_:_:)](swift/int/-=(_:_:).md)

## See Also

### Performing Calculations

- [negate()](swift/int/negate().md)
- [quotientAndRemainder(dividingBy:)](swift/int/quotientandremainder(dividingby:).md)
- [isMultiple(of:)](swift/int/ismultiple(of:).md)
