[go: up one dir, main page]

0% found this document useful (0 votes)
14 views36 pages

Number System

The document provides an overview of different number systems including decimal, octal, binary, and hexadecimal, detailing their digits, bases, and counting sequences. It includes methods for converting between these systems and examples of conversions. Additionally, it describes how to convert numbers from one base to another, including binary to decimal, octal to decimal, and hexadecimal to decimal.

Uploaded by

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

Number System

The document provides an overview of different number systems including decimal, octal, binary, and hexadecimal, detailing their digits, bases, and counting sequences. It includes methods for converting between these systems and examples of conversions. Additionally, it describes how to convert numbers from one base to another, including binary to decimal, octal to decimal, and hexadecimal to decimal.

Uploaded by

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

Number System

Decimal:
Digit: 0,1,…,9
Base = 10
Counting Sequence:
000
001
002
..
009
010
..
099
100
Octal:
Digit: 0,1,…,7
Base = 8
Counting Sequence:
000 - 0
001 - 1
002 - 2

007 - 7
010 - 8

077 – 63
100 - 64
Binary:
Digit: 0, 1
Base = 2
Counting Sequence:
0000 - 0
0001 - 1
0010 - 2
0011 - 3
0100 - 4
0101 - 5
0110 - 6
0111 - 7
1000 - 8
1001 - 9
1010 - 10
1011 - 11
1100 - 12
1101 - 13
1110 - 14
01111 - 15
10000 - 16
Hexa-decimal:
Digit: 0,1,…,9, A, B, C, D, E, F
Base = 16
Counting Sequence:
000 - 0
001 - 1
002 - 2

009 - 9
00A - 10
..
00F - 15
010 - 16
0FF - 255
100 - 256

101110 - binary Octal, decimal, Hex


472 - Octal, decimal, Hex
389 - decimal, Hex
9AC0 - Hex

(1001)2 = binary number


(989)16 = Hex
(101)8 = Octal
(2045)10
2x103 = 2000
0x102 = 000
4x101 = 40
5x100 = 5

(10101)2
---------------------
1x20 = 1
0x21 = 0
1x22 = 4
0x23 = 0
1x24 = 16
21
(10101)2 = (21)10
101001 - Binary, Octal, Decimal, Hex
5734 - Octal, Decimal, Hex
2382 - Decimal, Hex
342DE21 - Hex

(101001)8 = Octal
(101001)2 = Binary
(101001)10 = Decimal
(101001)16 = Hexa-decimal
Binary to Decimal:

(1000 11)2 = (?)10

1000 11 = 1x25 + 0x24 + 0x23 + 0x22 +1x21 + 1x20


= 32 + 0 + 0 + 0 + 2 + 1 = 35

So, (1000 11)2 = (35)10

(1100 110)2 = (?)10


1100 110 = 1x26+ 1x25 + 0x24 + 0x23 + 1x22 +1x21 + 0x20

= 64 + 32 + 0 + 0+ 4 + 2 + 0
= 102
So, (1100 110)2 = (102)10
Octal to Decimal:
(1126)8 = (?)10

1126 = (1x83) + 1x82 + 2x81 + 6x80


= 1x512 + 1x64 + 2x8 + 6x1
= 512 + 64 +16 + 6
= 598
So, (1126)8 = (598)10

(10823)8 = (?)10
Answer: The given number is not a
valid octal number. Therefore, the
number cannot be converted to
Decimal number.

(10623)8 = (?)10
To convert octal number 10623 to decimal, follow these two steps:
Start from one's place in 10623 : multiply ones place with 8^0, tens place with
8^1, hundreds place with 8^2 and so on from right to left
Add all the product we got from step 1 to get the decimal equivalent of 10623.
Using the above steps, here is the work involved in the solution for converting
10623 to decimal number (Don't forget that we start from ones place to so on...)
Decimal equivalent of "3" = 3 × 8^0 = 3
Decimal equivalent of "2" = 2 × 8^1 = 16
Decimal equivalent of "6" = 6 × 8^2 = 384
Decimal equivalent of "0" = 0 × 8^3 = 0
Decimal equivalent of "1" = 1 × 8^4 = 4096

Decimal equivalent of "10623" = 3+16+384+0+4096

(10623)8 = (4499)10
Hexa-decimal to Decimal:

(1A32)16 = (?)10
1A32 = 1 x163 + Ax162+ 3x161 + 2x160
= 1x4096 + 10x256 + 3x16 + 2x1
= 4096 + 2560 + 48 + 2
= 6706

So, (1A32)16 = (6706)10


(ACE2)16 = (?)10
(ACE2)16 = (44258)10
Binary to Octal:
8 = 23 so we need 3 bit for each number.
000 - 0
001 - 1
010 - 2
011 - 3
100 - 4
101 - 5
110 - 6
111 - 7
(1010-1101-0)2 = (?)8

101 011 010


5 3 2

So, (101-011-010)2 = (532)8

(1010-1101-01)2 = (?)8
001 010 110 101
1 2 6 5

So, (1-010-110-101)2 = (1265)8

(1011 1111 10)2 = (?)8


(1-011 -111-1 10)2 = (1376)8

(10-11 1-111-101)2 = (?)8

(10-11 1-111-101)2 = (2775)8


Binary to Hexa-decimal:
16 = 24

(1010 1101 0)2 = (?)16


0001 0101 1010
1 5 10
1 5 A
So, (1-0101-1010)2 = (15A)16
(1010-1101-0101-10)2 = (?)16

(10-1011-0101-0110)2= (2B56)16
-------------------------------------------
00000
00001 - 1
01111 - 15 - F
10000 - 16 - G
(456)10 = (?)6
0,1,2,3,4,5
6| 456
6|76 – 0 (LSD)
6|12 – 4
6| 2 – 0
0 – 2 (MSD)
(456)10 = (2040)6
(2040)6 = (?)10
2040 = 2x63 + 0x62 + 4x61 + 0x60
= 2x216 + 0 + 4x6 + 0
= 432+24 = 456
So, (2040)6 = (456)10
------------------------------------------
Octal to Binary
(273)8 = (?)2

2 7 3
010 111 011

So, (273)8 = (10-111-011)2

(30163)8 = (?)2
(30163)8 = (11-000-001-110-011)2

Hexa-decimal to Binary
(273)16 = (?)2

2 7 3
0010 0111 0011

So, (273)16 = (10-0111-0011)2


(2A3)16 = (?)2

2 A 3
2 10 3
0010 1010 0011
(2A3)16 = (10-1010-0011)2
(2ACE)16 = (?)2

(2ACE)16 = (10-1010-1100-1110)2
Decimal to Binary
(29)10 = (?)2

So, (29)10 = (1110-1)2


(529)10 = (?)2
2|529
2|264 - 1 (LSB)
2|132 - 0
2|66 - 0
2|33 - 0
2|16 - 1
2| 8 - 0
2|4 - 0
2|2 - 0
2|1 - 0
0 - 1 (MSB)
(529)10 = (1000-0100-01)2
Decimal to Octal
1. Decimal  Octal (divide by 8)
2. Decimal  Binary (divide by 2) 
Octal (3 bit group from right)

(2980)10 = (?)8

So, (2980)10 = (5644)8

(4099)10 = (?)8
(4099)10 = (10003)8

NEXT
Decimal to Hexa-decimal
1. Decimal  Hex (divide by 16)
2. Decimal  Binary (divide by 2) 
Hex (4 bit group from right)
(10,767)10 = (?)16

So, (10,767)10 = (2A0F)16

(9,067)10 = (?)16
(9,067)10 = (236B)16
Octal to Hexa-decimal

(321)8 = (?)16

3 2 1
011 010 001
(321)8 = (11-010-001)2

Again,
1101 0001
13 1
D 1
So, (321)8 = (11-010-001)2 = (D1)16
(276)8 = (?)16

(276)8 = (10-111-110)2
= (1011-1110)2
= (BE)16
Hexa-decimal to Octal
(A1E)16 = (?)8
A 1 E
10 1 14
1010 0001 1110
(A1E)16 = (1010 0001 1110)2

101 000 011 110


5 0 3 6
So,
(A1E)16 = (1010 0001 1110)2 = (5036)8

You might also like