---
title: "/(_:_:)"
framework: swift
role: symbol
role_heading: Operator
path: "swift/binaryinteger/_(_:_:)-8zc6l"
---

# /(_:_:)

Returns the quotient of dividing the first value by the second.

## Declaration

```swift
static func / (lhs: Self, rhs: Self) -> Self
```

## Parameters

- `lhs`: The value to divide.
- `rhs`: The value to divide lhs by. rhs must not be zero.

## Discussion

Discussion For integer types, any remainder of the division is discarded. let x = 21 / 5 // x == 4

## See Also

### Arithmetic

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