Divide

protocol Divide<RHS>

Defines the / operator with independent right-hand and result types.

A conformance must document zero-divisor and rounding behavior; integer and floating-point conformances intentionally have different failure semantics.

Methods

func divide(_ rhs: RHS) -> Ret

Divides this value by the right-hand operand.

View Source
func divide(_ rhs: RHS) -> Ret