The multiplying and the dividing algorithms are the same! It's nice that way. So...
(pos = positive, neg = negetive)
Dividing:
- pos / pos= pos
- neg / neg = pos
{if the signs are the same, then the answer is pos}
- pos / neg = neg
- neg / pos = neg
{if the signs are different, then the answer is neg}
No comments:
Post a Comment