James Tam Non decimal math: doing math with non-base 10 number systems Addition, subtraction and multiplication with binary, octal and hexadecimal
James Tam Addition in binary: 4 cases Case 1: sum = 0, no carry Case 2: sum = 1, no carry Case 3: sum = 1, no carry Case 4: sum 1, carry = = 2 (in decimal) = 11 (in binary) 1
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.
James Tam Non-decimal addition: an example e.g
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).
James Tam Non-decimal subtraction: an example e.g.,
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.
James Tam Non-decimal multiplication: an example e.g., 1F 16 * E 16 3E 16 1F0 16
James Tam Summary (important points) How do perform basic mathematical operations (addition, subtraction and multiplication in different bases) Binary Octal Hexadecimal