115k views
5 votes
Explain how you can use aboslute value to tell wether the sum of two integers is positive or negative.

1 Answer

3 votes

If exactly one integer (B) has a negative sign, the sign of the sum A + B will be negative if |B| > A. Otherwise it will be positive or zero.

___

If both signs are positive, the sum is positive. If both signs are negative, the sum is negative. If one value is zero, the sum is the other value.

User Gelbander
by
7.6k points