Returns the remainder of this value divided by the given value using truncating division.
Required. Default implementation provided.
- Xcode 10.0+
- Swift Standard Library
The value to use when dividing this value.
The remainder of this value divided by
other using truncating division.
Performing truncating division with floating-point values results in a truncated integer quotient and a remainder. For values
y and their truncated integer quotient
q, the remainder
x == y * q + r.
The following example calculates the truncating remainder of dividing 8.625 by 0.75:
If this value and
other are both finite numbers, the truncating remainder has the same sign as this value and is strictly smaller in magnitude than
truncating method is always exact.