Skip to content

ByteExtensions.DidSubtractionOverflow Method

Definition

Determines whether a signed subtraction overflowed by examining the difference and its operands.

public static bool DidSubtractionOverflow(this Byte difference, Byte left, Byte right);

View source

Parameters

Name Type Description
difference Byte The result of the subtraction.
left Byte The left operand.
right Byte The right operand.

Returns

Boolean

true if the subtraction overflowed; false otherwise.