OperatorFoundationEssentials
/(_:_:)
iOS 8.0+
iPadOS 8.0+
Mac Catalyst 8.0+
macOS 10.10+
tvOS 9.0+
watchOS 2.0+
Divides one decimal number by another.
Parameters
lhsThe value to divide.
rhsThe value to divide
lhsby.
Return Value
The result of dividing lhs by rhs.
Discussion
If the result of this operation requires more precision than the Decimal type can provide, the result is rounded using the NSDecimalNumber/RoundingMode/plain rounding mode. To specify a different rounding mode, use the NSDecimalDivide(_:_:_:_:) function instead.