Returns the quotient of dividing the first value by the second, rounded to a representable value.
SDK
- Xcode 9.0+
Framework
- Swift Standard Library
Declaration
Parameters
lhs
The value to divide.
rhs
The value to divide
lhs
by.
Discussion
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 lhs
.
The /
operator implements the division operation defined by the IEEE 754 specification.
Note
This documentation comment was inherited from Floating
.