Number system Arithmetic | Addition | Subtraction YASH PAL, April 3, 2022July 13, 2025 Number System Arithmetic – The most common Number system arithmetic operations are addition, subtraction, multiplication, and division.We all are familiar with these arithmetic operations on decimal numbers. the same operations can be performed on binary, octal, and hexadecimal numbers.Number System ArithmeticBinary arithmeticOctal arithmeticHexadecimal arithmeticBinary ArithmeticBinary arithmetic is much simpler than decimal arithmetic because only two digits, 0 and 1, are involved.Binary additionFor binary addition, we have to remember some rules that are given in the table below.AugendAddendSumCarry0000011010101101Example of binary additionAdd the following binary numbers.1011 and 1100 1 0 1 1 (+) 1 1 0 0 _____________Carry(1) 0 1 1 1So the addition of both numbers 1011 and 1100 is 10111. Here, that last number 1 is th carry.Binary SubtractionFor binary subtraction, we also have some rules that are given in the table below.MinuendSubtrahendDifferenceBorrow00 0011110101100Example of binary subtractionSubtract the following binary numbers.1101 and 0011 1 1 0 1 (-) 0 0 1 1 ________________ 1 0 1 0When 1 is subtracted from 0, there is a borrow from the adjacent bit.2’s complement MethodThe 2’s complement is used to represent the negative of a binary number. The 2’s complement of any binary number can be found by following the steps given.Invert all bitsAdd 1 to the inverted numberThe obtained number will be negative compared to the original binary number. The 2’s complement method can be used to subtract the numbers.Step 1: Write the minutes.Step 2: Find the 2’s complement of the subtrahend.Step 3: Add these two numbers.Step 4: If a carry is there, then discard the carry, and the remaining is the required result.Step 5: If carry is not there, take 2’s complement of the result and place a negative sign to MSB, which is the reset and is negative.Example of binary subtraction using 2’s complementSubtract (52)10 from (92)10 by using the 2’s complement method. Remember, it is the base 10 number.(52)10 = (0110100)2(92)10 = (1011100)22’s complement of (52)10 = (1001011 + 1)2 = (1001100)2Now (1)(1)(1) Minuend = 1 0 1 1 1 0 0 2’s complement of (52)10 = 1 0 0 1 1 0 0 ________________________ [Discard the carry (1)] 0 1 0 1 0 0 0The result is (0101000)2 or (40)10Octal ArithmeticOctal arithmetic rules are similar to decimal or binary arithmetic. Arithmetic operations for octal numbers can be performed by converting the octal number to binary numbers and then using the rules of binary arithmetic.Example of octal additionAdd the numbers (23)8 and (56)8.(23)8 = 0 1 0 0 1 1(56)8 = (+) 1 0 1 1 1 0 _______________________ (1) 0 0 0 0 0 1 CarryThus, the result is (1000 001)2 = (101)8Hexadecimal ArithmeticThe rules for arithmetic operations with hexadecimal numbers are similar to the rules for decimal, octal, and binary systems.The information can be handled only in binary form in a digital circuit, and it is easier to enter the information using a hexadecimal number system.Since arithmetic operations are performed by the digital circuits on binary numbers, hexadecimal numbers are first converted into binary numbers.Example of hexadecimal additionAdd the two numbers (7F)16 and (32)16 (1)(1)(1)(1)(1)(1)(7F)16 = (0 1 1 1 1 1 1 1)2(32)16 = + (0 0 1 1 0 0 1 0)2 ______________________________ 1 0 1 1 0 0 0 1So the result is (1011 0001)2 or (B1)16 engineering subjects microprocessor engineering subjectsmicroprocessor