0% found this document useful (0 votes)
140 views19 pages

Number System

The document discusses different number systems including binary, octal, decimal, and hexadecimal. It provides the base for each system. It then explains how to convert decimal numbers to other bases and vice versa using examples. The key steps involve repeatedly dividing the number by the new base and recording the remainders from right to left until the quotient is zero. Converting from other bases to decimal involves determining the positional value of each digit and summing the products.

Uploaded by

Hanily Asaytuno
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)
140 views19 pages

Number System

The document discusses different number systems including binary, octal, decimal, and hexadecimal. It provides the base for each system. It then explains how to convert decimal numbers to other bases and vice versa using examples. The key steps involve repeatedly dividing the number by the new base and recording the remainders from right to left until the quotient is zero. Converting from other bases to decimal involves determining the positional value of each digit and summing the products.

Uploaded by

Hanily Asaytuno
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/ 19

Number System

Discussant: Hanily B. Asaytuno


NUMBER SYSTEM BASE
Binary 2
Octal 8
Decimal 10
Hexadecimal 16
Converting Decimal to other Base System
Step 1: Divide the decimal number to be converted by the
value of the new base.
Step 2: Get the remainder from step 1 as the rightmost digit
(Least significant digit) of new base number.
Step 3: Divide the quotient of the previous divide by the
new base.
Step 4: Record the remainder from Step 3 as the next digit
(to the left) of the new base number.
• Repeat Step 3 and 4, getting remainders from right to
left, until the quotient becomes zero in Step 3.
• The last remainder thus obtained will be the Most
Significant Digit (MSD) of the new base number.
Example: Decimal to Binary
Decimal Number: 2910
Step Operation Result Remainder (*2) Base 2
1 29 / 2 14 .5 1
2 14 / 2 7 0 0
3 7/2 3 .5 1
4 3/2 1 .5 1
5 1/2 0 .5 1

Binary Number – 111012


Example: Decimal to Octal

Decimal Number: 21010

Step Operation Result Remainder (*8) Base 2


1 210 / 8 26 .25 2
2 26 / 8 3 .25 2
3 3/8 0 .375 3

Octal Number – 3228


Example: Decimal to Hexadecimal

Decimal Number: 15,68010


Step Operation Result Remainder Base 2
(*16)
1 15,680 / 16 980 0 0
2 980 / 16 61 .25 4
3 61 / 16 3 .8125 13
4 3 / 16 0 .1875 3

Hexadecimal Number – 3D4016


Converting Other Base System to Decimal System
 Step 1: Determine the column (positional) value
of each digit (this depends on the position of the
digit and the base of the number system).
 Step 2: Multiply the obtained column values (in
Step 1) by the digits in the corresponding
columns.
 Step 3:Sum the products calculated in Step 2.
The total is the equivalent value in decimal.
Example: Binary to Decimal
43210
Binary Number: 1 1 1 0 12

= 1 (2)0 + 0 (2)1 + 1 (2)2 + 1 (2)3 + 1 (2)4

= 1 (1) + 0 (2) + 1 (4) + 1 (8) + 1 (16)

= 1 + 0 + 4 + 8 + 16

=29

Decimal Number – 2910


Example: Octal to Decimal
10
Octal Number: 3 78

= 7 (8)0 + 3 (8)1

= 7 (1) + 3 (8)

= 7 + 24

=31

Decimal Number – 3110


Example: Hexadecimal to Decimal
3210
Hexadecimal Number: E 7 A 916

= 9 (16)0 + 10 (16)1 + 7 (16)2 + 14 (16)3

= 9 (1) + 10 (16) + 7 (256) + 14 (4,096)

= 9 + 160 + 1,792 + 57,344

=59,305

Decimal Number – 59,30510


Example: Binary to Hexadecimal

Binary Number: 101012 (0001 0101)


0001 0101

=1(2)0+0(2)1+0(2)2+0(2)3 =1(2)0+0(2)1+1(2)2+0(2)3

=1+0+0+0 =1+0+4+0

=1 =5

Hexadecimal Number – 1516


Example: Binary to Octal
Binary Number: 10101111002 (001 010 111 100)

001 111
=1(2)0+0(2)1+0(2)2 =1(2)0+1(2)1+1(2)2
=1+0+0 =1+2+4
=1 =7

010 100
=0(2)0+1(2)1+0(2)2 =0(2)0+0(2)1+1(2)2
=0+2+0 =0+0+4
=2 =4

Octal Number – 12748


Example: Octal to Binary
Octal Number: 76318

7 *2 3 *2
1 7/2 3 .5 1 1 3/2 1 .5 1
2 3/2 1 .5 1 2 1/2 0 .5 1
3 1/2 0 .5 1 3 0 0
6 *2 1 *2
1 6/2 3 0 0 1 1/2 0 .5 1
2 3/2 1 .5 1 2 0 0
3 1/2 0 .5 1 3 0 0
 Binary Number – 1111100110012
Example: Octal to Hexadecimal
Step 1: Octal to Binary
Octal Number: 5368
5 *2 3 *2
1 5/2 2 .5 1 1 3/2 1 .5 1
2 2/2 1 0 0 2 1/2 0 .5 1
3 1/2 0 .5 1 3 0 0
6 *2
1 6/2 3 0 0
Binary Number – 2 3/2 1 .5 1
1010111102 3 1/2 0 .5 1
Example: Octal to Hexadecimal
Step 2: Binary to Hexadecimal
Binary Number: 1010111102 (0001 0101 1110)
0001 1110
=1(2)0+0(2)1+0(2)2+0(2)3 =0(2)0+1(2)1+1(2)2+1(2)3
=1+0+0+0 =0+2+4+8
=1 = 14

0101
=1(2)0+0(2)1+1(2)2+0(2)3
=1+0+4+0
=5
Hexadecimal Number – 15E16
Example: Hexadecimal to Binary
Hexadecimal Number: 3AB216 -------- Binary: 111010101100102

3 *2 10 *2
1 3/2 1 .5 1 1 10/2 5 0 0
2 1/2 0 .5 1 2 5/2 2 .5 1
3 0 0 3 2/2 1 0 0
4 0 0 4 1/2 0 .5 1
11 *2 2 *2
1 11/2 5 .5 1 1 2/2 1 0 0
2 5/2 2 .5 1 2 1/2 0 .5 1
3 2/2 1 0 0 3 0 0
4 1/2 0 .5 1 0 0
Example: Hexadecimal to Octal
Step 1: Hexadecimal to Binary
Hexadecimal Number: 1AC16 -------- Binary: 0001101011002
1 *2 10 *2
1 1/2 0 .5 1 1 10/2 5 0 0
2 0 0 2 5/2 2 .5 1
3 0 0 3 2/2 1 0 0
0 0 4 1/2 0 .5 1
12 *2
1 12/2 6 0 0
2 6/2 3 0 0
3 3/2 1 .5 1
4 1/2 0 .5 1
Step 2: Binary to Octal
Binary Number: 0001101011002 (000 110 101 100)

000 110
=0(2)0+0(2)1+0(2)2 =0(2)0+1(2)1+1(2)2
=0+0+0 =0+2+4
=0 =6

101 100
=1(2)0+0(2)1+1(2)2 =0(2)0+0(2)1+1(2)2
=1+0+4 =0+0+4
=5 =4

Octal Number – 06548


THANK YOU!

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy