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

Number System

The document discusses different number systems used in computer architecture, including binary, octal, decimal, and hexadecimal. It provides details on how each system represents numbers using different bases and numerals. Conversion methods between these number systems are also presented, with examples showing how to convert a number from decimal to binary, octal, or hexadecimal and vice versa.

Uploaded by

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

Number System

The document discusses different number systems used in computer architecture, including binary, octal, decimal, and hexadecimal. It provides details on how each system represents numbers using different bases and numerals. Conversion methods between these number systems are also presented, with examples showing how to convert a number from decimal to binary, octal, or hexadecimal and vice versa.

Uploaded by

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

NUMBER SYSTEM AND

CONVERSION

Bernie Bathan
Number System
Number System are the technique to
represent numbers in the computer
system architecture, every value that you
are saving or getting into/ from computer
memory has a defined number system.
COMPUTER ARCHITECTURE
SUPPORTS FOLLOWING
NUMBER SYSTEMS

• BINARY NUMBER SYSTEM


• OCTAL NUMBER SYSTEM
• DECIMAL NUMBER SYSTEM
• HEXADECIMAL (HEX) NUMBER SYSTEM
Binary number
system
A binary number system has
only two digits that are 0 and 1. Every
number (value) represents with 0 and
1 in this number system. The base of
binary number system is 2, because it
has only two digits.
OCTAL NUMBER
SYSTEM
Octal number system has only
eight (8) digits from 0 to 7. Every
number (value) represents with
0,1,2,3,4,5,6 and 7 in this number
system. The base of octal number
system is 8, because it has only 8
digits.
DECIMAL
NUMBER
SYSTEM
Decimal number system has
only ten (10) digits from 0 to 9. Every
number (value) represents with
0,1,2,3,4,5,6, 7,8 and 9 in this number
system. The base of decimal number
system is 10, because it has only 10
digits.
HEXADECIMAL
NUMBER
SYSTEM
A Hexadecimal number system has
sixteen (16) alphanumeric values from 0 to 9 and
A to F. Every number (value) represents with
0,1,2,3,4,5,6, 7,8,9,A,B,C,D,E and F in this number
system. The base of hexadecimal number
system is 16, because it has 16 alphanumeric
values. Here A is 10, B is 11, C is 12, D is 14, E is 15
and F is 16.
01
CONVERSION
DECIMAL TO OTHER
Remainder Results
12345 / 2 1
Decimal to 6172 / 2 0

Binary 3086 / 2
1545 / 2
0
1
771 / 2 1
385 / 2 1
Given: 12345 192 / 2 0 1100000111001
96 / 2 0
48 / 2 0
24 / 2 0
12 / 2 0
6/2 0
3/1 1
1/1 1
Remainder Results

Decimal to 12345 / 8 1

Octal 1543 / 8 7
30071
192 / 8 0

Given: 12345 24 / 8 0

3/8 3
Given: 12345
Remainder Results

DECIMAL TO
12345 / 16 9
771 / 16 3
3039
HEXADECIM 48 / 16
3 / 16
0
3
AL A
10
Given: 725
11 B
Remainder Results
12 C 725 / 16 5
13 D 2D5
45 / 16 13
14 E 2 / 16 2

15 F
01
CONVERSION
BINARY TO OTHER
Remainder Results
Binary to 1x1 1

Decimal
0x2 0
0x4 0
1x8 8
217
1 x 16 16
Given: 11011001
0 x 32 0
1 x 64 64
1 x 128 128
binary octal

Binary to 000
001
0
1

Octal 010
011
2
3
100 4
Given: 011 100 101 101 5
110 6
answer: 345 111 7
hexadecimal binary hexadecimal binary
0000 0 1011 B
Binary to 0001 1 1100 C
0010 2 1101 D
0011 3 1110 E

Hexadecimal 0100
0101
4
5
1111 F

Given: 1110 0101 0110 6


0111 7
answer: E5 1000 8
1001 9
1010 A
01
CONVERSION
OCTAL TO OTHER
binary octal

Octal to 000
001
0
1

Binary 010
011
2
3
100 4
Given: 345 101 5
110 6
answer: 011 100 101 111 7
binary Hexadecimal
0000 0

Octal to 0001
0010
1
2 binary Hexadecimal
Hexadecimal 0011
0100
3
4
1101 D
1110 E
0101 5 1111 F
Given: 345 0110 6
answer: 1110 0101 0111 7
E 5 1000 8
1001 9
1010 A
1011 B
1100 C
Octal to Decimal
● Given:
● Solution:

○ (3 x ) + (4 X ) + (5 X )

○ (3 X 64) + (4 X 8) + (5 X 1)

○ 192 + 32 + 5
01
CONVERSION
HEXADECIMAL TO OTHER
HEXADECIMAL TO BINARY
HEXADECIMAL BINARY HEXADECIMAL BINARY

0 0000 8 1000

1 0001 9 1001

2 0010 A 1010

3 0011 B 1011

4 0100 C 1100

5 0101 D 1101

6 0110 E 1110

7 0111 F 1111
EXAMPLE
A2DE
ANS: 10100010111011110
HEXADECIMAL TO OCTAL
● EX. 6C
● 1ST CONVERT INTO BINARY

○ 01101100
● 2ND CONVERT INTO OCTAL

○ 001 101 100

○ 1 5 4
HEXADECIMAL INTO DECIMAL
● EX. 3B
○ (3 X ) + ()
○ 48 + 11
TABLE OF CONTENTS

INTRODUCTION REQUIREMENTS
01 You can describe the topic of
the section here
02 You can describe the topic of
the section here

SYLLABUS LEARNING SKILLS


03 You can describe the topic of
the section here
04 You can describe the topic of
the section here

You might also like