0% found this document useful (0 votes)
3 views

Binary Arithmetic

Uploaded by

Dlissedney
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Binary Arithmetic

Uploaded by

Dlissedney
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 27

BINARY

BINARY ARITHMETIC
ARITHMETIC
Binary Arithmetic
B I N A RY A R I T H M E T I C

 refers to performing
B I N A RY A R I T H M E T I C R E F E R S T O

mathematical operations
P E R F O R M I N G M AT H E M AT I C A L
O P E RAT I O N S S U C H A S
ADDITION, SUBTRACTION,
M U LT I P L I C A T I O N A N D D I V I S I O N
such as addition,
O N B I N A RY N U M B E R S .

subtraction,
multiplication and
division on binary
numbers.
4 ASPECTS OF BINARY
ARITHMETIC

• Binary Addition
• Binary Subtraction
• Binary
Multiplication
• Binary Division
Binary Addition
 the method of adding two
binary numbers
4 Rules of Binary Addition
Example 1: Example 2:
Binary Subtraction
• an arithmetic operation similar to the
subtraction of decimal numbers or base
10 numbers

4 Rules of Binary
Subtraction
Example 1: Example 2:
Binary Multiplication
 the process of multiplying binary
numbers same as that of
arithmetic multiplication with
decimal numbers
4 Rules of Binary Multiplication
Example 1: Example 2:
Binary Division
 similar to decimal division
 it is called as the long division
procedure
The rules of binary division
are:
1÷1 = 1
1÷0 = Meaningless
0÷1 = 0
0÷0 = Meaningless
Binary Division
Division: First take the leftmost digit of the dividend,
we attempt to divide it by the divisor which must be
smaller than the dividend digits. This results in a
quotient.
Multiplication: Once we have found the quotient,
we use it to multiply the divisor to obtain a product.
Subtraction: Having calculated the product in the
previous step, we subtract that from the working
dividend to calculate a remainder.
Bring Down: The final step is then to bring down the
next digit in our original dividend, combine it with the
remainder in the previous step and form a new
working dividend. At this point, the process is
repeated.
Example 1: Solve 11101 ÷ 11

Therefore 11101/11 = 1001 remainder 10.


Example 2: Find division of 11101 and 101.
BINARY CODED
BINARY ARITHMETIC
DECIMAL
Binary Coded Decimal (BCD)
• is another process for converting decimal
numbers into their binary equivalents
• it is a form of binary encoding where each
digit in a decimal number is represented in
the form of bits
• this encoding can be done in either 4-bit or 8-
bit (usually 4-bit is preferred)
• is a fast and efficient system that converts
the decimal numbers into binary numbers as
compared to the existing binary system
Binary Coded Decimal (BCD)
• is another process for converting decimal
numbers into their binary equivalents
• it is a form of binary encoding where each
digit in a decimal number is represented in
the form of bits
• this encoding can be done in either 4-bit or 8-
bit (usually 4-bit is preferred)
• is a fast and efficient system that converts
the decimal numbers into binary numbers as
compared to the existing binary system
Binary Coded Decimal (BCD)
Representing larger digits and numbers
with binary-coded decimal

Example 1: Decimal number 1764


1 = 0001
7 = 0111
6 = 0110
4 = 0110
1764 = 0001 0111 0110 0100
Representing larger digits and numbers
with binary-coded decimal

Example 2: Decimal number 238

2 = 0010
3 = 0011
8 = 1000
238 = 001000111000
BCD TO BINARY CONVERSION

• Step 1 -- Convert the BCD number to


decimal.
• Step 2 -- Convert decimal to binary.
BCD TO BINARY CONVERSION

Example: Convert (00101001)BCD to Binary.


Step 1 - Convert the BCD number to decimal

(00101001)BCD = 00102 10012


(00101001)BCD = 210 910
(00101001)BCD = 2910
Result
(00101001)BCD = (11101)2

BCD TO BINARY CONVERSION

Example: Convert (00101001)BCD to Binary.

Step 2 - Convert decimal to binary

2910 = 111012
Result

(00101001)BCD = (11101)2
BINARY TO BCD CONVERSION

• Step 1 -- Convert the binary number


to decimal
• Step 2 -- Convert decimal number to
BCD
BINARY TO BCD CONVERSION

Example: Convert (11101)2 to BCD.


Step 1 - Convert the binary number to decimal

(11101)2 = ((1 × 24) + (1 × 23) + (1 × 22) +


(0 × 21) + (1 × 20))10
= (16 + 8 + 4 + 0 + 1)10
= 2910
BINARY TO BCD CONVERSION

Example: Convert (11101)2 to BCD.

Step 2 - Convert the decimal number to BCD

2910 = 00102 10012

2910 = 00101001BCD
BINARY TO BCD CONVERSION

Example: Convert (11101)2 to BCD.

Step 2 - Convert the decimal number to BCD

2910 = 00102 10012

2910 = 00101001BCD

You might also like