Returns the quotient and remainder of this value divided by the given value.
SDK
- Xcode 9.0+
Framework
- Swift Standard Library
Declaration
Parameters
rhs
The value to divide this value by.
Return Value
A tuple containing the quotient and remainder of this value divided by rhs
.
Discussion
Use this method to calculate the quotient and remainder of a division at the same time.