0% found this document useful (0 votes)
12 views12 pages

Number Systems-Binary Numbers

Uploaded by

Lizzy Busi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views12 pages

Number Systems-Binary Numbers

Uploaded by

Lizzy Busi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Outline

 How to convert a number from binary to decimal

 How to convert a number in decimal to binary

 How to find numbers of digits needed in each system to represent


a particular value.
Start from the
right-most digit of
the binary number .

4.The sum is
the decimal
equivalent of
the binary
number. Assign a weight of 2^0 to
the right-most digit and
increase the exponent by
1 for each digit to the left.

3. Multiply each binary


digit by the corresponding
weight and sum them up
to get the decimal
equivalent.

Step 2
Step 1
4.The sum is the decimal
equivalent of the binary
number.
Start from the
right-most digit of
the binary number.

3. Multiply each binary


digit by the corresponding Assign a weight of
2^0 to the right-most

weight and sum them up


digit and increase the
exponent by 1 for
each digit to the

.
to get the decimal left

equivalent.

Step 3 Step 4
Example 1 Example 2 Example 3 The process can be
applied to binary
numbers of any length,
making it a fundamental
=8 + 0 + 2 + 1 = 16 + 8 + 0 +2 +1 = 0 + 64 + 0 + 16 + 0 +4 concept in
+2 understanding digital
=11 = 27 systems, computer
= 86 programming, and data
representation.
Decimal To Binary

There Are 2 Different 4 - BY THE PLACING ALL THE


REMAINDERS IN ORDER OF THE
1 – KEEP DIVIDING THE GIVEN

Methods To Convert LEAST SIGNIFICANT BIT ( LSB)


AND THE MOST SIGNIFICANT BIT
DECIMAL NUMER BY ''2'', WHERE
IT GIVES THE RESULT ALONG
WITH THE REMAINDER.
(MSB) AT THE BOTTOM.
Decimal To Binary.
First One Being :
3 - IF
THE DIVISION METHOD THE GIVEN DECIMAL NUMBER IS
ODD, THEN THE RESULT IS NOT
2 - IF THE GIVEN DECIMAL IS
EVEN, THEN THE RESULT WILL BE
WHOLE AND IT GIVES
DIVIDED PROPERLY AND GIVES
THE REMAINER ''0''.
THE REMAINDER ''1''.
13 2 = 6 rem 1 ( LSB )
6 2=3 rem 0
3 2=1 rem 1
1 2=0 rem 1 ( MSB )

Now write all your remainders from the


Let’s take 13 as an example: Most Significant Bit to the Least Significant
Bit

13 = 1 1 0 1

You can do this for all decimals you can


get or you can use long division method.
Let's Convert ;) 75

 Since and is above 75, 64 will be our last number 64 32 16 8 4 2 1


so we will start with 64 1 0 0 1 0 1 1

 The largest power of 2 that is less than or equal 75 – 64


to 75 is 6, so the first binary digit is 1. = 11
Subtract 64 from 75, leaving 11.

 The closest number to 11 under 11 is 8, so the 11 – 8


next binary digit is 1. =3
Subtract 8 from 11, leaving 3.

 The closest number to 3 under 3 is 2, so the next 3–2


binary is 1. =1
We must subtract until we get a remainder of zero,
so subtracting 1 from 1, the last binary is 1 1–1
=0
 Now, write down the binary digits in order:
1001011.  75 = 1 0 0 1 0 1 1
So, 75 in decimal is 1001011 in binary using the
subtraction method.
To Find The Number Of Digits Needed In Each System To
Represent A Particular Value?
32/2 = 16 rem 0
16/2 = 8 rem 0
8/2 = 4 rem 0 The number of digits you need to represent a particular value in
4/2 = 2 rem 0 binary depends on how many times you have to divide the number by
2/2 = 1 rem 0
2 to get 0
1/2 = 0 rem 1
For example, in the binary number system, you only need 6 digits to
The number of digits represent the decimal valueT 32. This is because 32 is .
required to represent (32)
in binary So, the binary representation of 32 is "100000"
Is 6
For Hexadecimal ( Base 16) : The number of digits depends on how many times you
have to divide the number by 16 to get zero
1264/16 = 79 rem 0
79/16 = 4 rem 15
4/16 = 0 rem 4
 The number of digits required to represent (64) in Hexadecimal Is 3.

For Octal (Base 8 ): Number of digits depends on how many times you have to divide
the number by 8 to get zero
555/8 = 69 rem 3
69/8 = 8 rem 5
8/8 = 1 rem 0
1/8 = 0 rem 1

 The number of digits required to represent (555) in Octal Is 4

For Decima ( Base 10 ): The digits required are the same as the digits of that number
Thank You For
Watching

You might also like