Download presentation
Presentation is loading. Please wait.
1
James Tam Non decimal math: doing math with non-base 10 number systems Addition, subtraction and multiplication with binary, octal and hexadecimal
2
James Tam Addition in binary: 4 cases Case 1: sum = 0, no carry 0 + 0 0 Case 2: sum = 1, no carry 0 + 1 1 Case 3: sum = 1, no carry 1 + 0 1 Case 4: sum 1, carry = 1 1 + 1 0 1 1 + 1 = 2 (in decimal) = 11 (in binary) 1
3
James Tam Non-decimal addition: in general 1)If the sum of the two digits being added can be represented in the base, no problem, perform the addition as normal. 2)If the sum of the two digits being added are too large to be represented in the base then convert the numbers to a value in the base that you are working with before proceeding with the addition.
4
James Tam Non-decimal addition: an example e.g. 130 8 + 52 8 202 8
5
James Tam Non-decimal subtraction: in general If you need to perform a borrow keep in mind that the amount that you borrow equals the base (e.g., in decimal when you perform a borrow it equals 10).
6
James Tam Non-decimal subtraction: an example e.g., 1000 2 - 0001 2 0111 2
7
James Tam Non-decimal multiplication: in general 1)If the product of the two digits being multiplied can be represented in the base, no problem, perform the multiplication as normal. 2)If the product of the two digits being multiplied are too large to be represented in the base then convert the numbers to a value in the base that you are working with before proceeding with the multiplication.
8
James Tam Non-decimal multiplication: an example e.g., 1F 16 * 12 16 22E 16 3E 16 1F0 16
9
James Tam Summary (important points) How do perform basic mathematical operations (addition, subtraction and multiplication in different bases) Binary Octal Hexadecimal
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.