Returns the quotient of dividing the first value by the second, rounded to a representable value.
- Xcode 9.0+
- Swift Standard Library
The value to divide.
The value to divide
The division operator (
/) calculates the quotient of the division if
rhs is nonzero. If
rhs is zero, the result of the division is infinity, with the sign of the result matching the sign of
/ operator implements the division operation defined by the IEEE 754 specification.