2.1 Numbering System

Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

Numbering

System
Number System Introduction

Decimal >>> Base 10


Binary >>> Base 2
0, 1, 2, 3, 4, 5, 6, 7, 8, 9 0, 1

Octal >>> Base 8 Hexadecimal>>> Base


0, 1, 2, 3, 4, 5, 6, 7 16
0, 1, 2, 3, 4, 5, 6, 7, 8,
9,
A, B, C, D, E, F
00000000 00000001 00000010 00001110
Decimal
00000100 00001001 01001010 00001110
Hexa

System of
Binary Counting
11100010 00101000 01101010 01010001

Octal
Computer Data
123
00000000 00000001 00000010 00001110
Hello
00000100 00001001 01001010 00001110

zzzzz 11100010 00101000 01101010 01010001


Decimal Representation

105 104 103 102 101 100


100000 10000 1000 100 10 1

2 2 4 0 0
Binary Representation

27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1

1 0 0 1 1 0 1 1

155 8 Bits 1 Byte


155 00000000 00000000 00000000 10011011

65535 00000000 00000000 11111111 11111111

32 Bits = 4 Bytes

64 Bits = 8 Bytes
How does computer understand your code?
Decimal
27 26 25 24 23 22 21 20
Value
Octal Numbers
128 64 32 16 8 4 2 1
0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 1
2 0 0 0 0 0 0 1 0
3 0 0 0 0 0 0 1 1
4 0 0 0 0 0 1 0 0
5 0 0 0 0 0 1 0 1
6 0 0 0 0 0 1 1 0
7 0 0 0 0 0 1 1 1
Hexadecimal Numbers Decimal
27 26 25 24 23 22 21 20
Value
128 64 32 16 8 4 2 1
8 0 0 0 0 1 0 0 0
9 0 0 0 0 1 0 0 1
A 0 0 0 0 1 0 1 0
B 0 0 0 0 1 0 1 1
C 0 0 0 0 1 1 0 0
D 0 0 0 0 1 1 0 1
E 0 0 0 0 1 1 1 0
F 0 0 0 0 1 1 1 1
ACSII (American Standard Code Information
Interchange) for A

Dec Oct
65 101

Binary
Hex
41 01000001
Mmm, can I fit in?...
ACSII Table

https://www.lookuptables.com/text/ascii-table
Bit
A 0100 0001

64 + 1 = 65
THANK YOU

TechAge

You might also like