- IF one operand is a decimal, THEN the other operand is promoted to decimal (unless it is of type float or double, in which case an error results).
- ELSE IF one operand is a double, the second is promoted to double.
- ELSE IF one operand is a float, the second is promoted to float.
- ELSE IF one operand is a ulong, the second is promoted to ulong (unless it is of type sbyte, short, int, or long, in which case an error results).
- ELSE IF one operand is a long, the second is promoted to long.
- ELSE IF one operand is a uint and the second is of type sbyte, short, or int, both are promoted to long.
- ELSE IF one operand is a uint, the second is promoted to uint.
- ELSE both operands are promoted to int.
|