# What's the most general type operator \`/\` can be used on?

**URL:** <https://forums.swift.org/t/whats-the-most-general-type-operator-can-be-used-on/51068>\
**Category:** Using Swift\
**Created:** [August 9, 2021, 5:43pm UTC](https://forums.swift.org/t/whats-the-most-general-type-operator-can-be-used-on/51068 "2021-08-09T17:43:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![AlexanderM](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/alexanderm/32/9781_2.png) [@AlexanderM](https://forums.swift.org/u/AlexanderM)\
**Post date:** [August 9, 2021, 6:15pm UTC](https://forums.swift.org/t/whats-the-most-general-type-operator-can-be-used-on/51068/2 "2021-08-09T18:15:20Z")

</div>

I don't think there's a single top-level protocol that defines `/`. The same `/` operator is defined separate by [`BinaryInteger`](https://developer.apple.com/documentation/swift/binaryinteger) and [`FloatingPoint`](https://developer.apple.com/documentation/swift/floatingpoint), but the two have different semantics (integer division vs floating-point division).

IIRC the Swift numerics package had a protocol that unified these, but I don't remember the details.

---

_[View the full topic](https://forums.swift.org/t/whats-the-most-general-type-operator-can-be-used-on/51068)._
