Instance Method

multipliedReportingOverflow(by:)

Returns the product of this value and the given value, along with a Boolean value indicating whether overflow occurred in the operation.

Declaration

func multipliedReportingOverflow(by other: Int8) -> (partialValue: Int8, overflow: Bool)

Parameters

rhs

The value to multiply by this value.

Return Value

A tuple containing the result of the multiplication along with a Boolean value indicating whether overflow occurred. If the overflow component is false, the partialValue component contains the entire product. If the overflow component is true, an overflow occurred and the partialValue component contains the truncated product of this value and rhs.

Relationships

From Protocol