Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 21

NUMERICAL REPRESENTATION OF

INFORMATION
D E C I M A L N O TAT I O N A N D B I N A R Y
N O TAT I O N
DECIMAL NOTATION

Decimal notation -- is simply a form of a


number using a decimal point.  
Decimals use the base ten. Thus, they
have tenths, hundredths, thousandths, ten
thousandths, etc. places.
It uses the set (0, 1, 2, 3, 4, 5, 6, 7, 8, 9).
BINARY NOTATION

Binary notation --  is a system of numbers


that has only two different integer
values 0 and 1.
Its uses the set (0, 1).
Computer works in this notation.
For computers:
 1 represents the presence of an electric
charge or current flowing.
 0 represents the absence of a charge or
current.
HOW DO WE CONVERT
BINARY TO DECIMAL
AND DECIMAL TO
BINARY?
BINARY TO DECIMAL AND DECIMAL TO BINARY

Binary Notation Decimal Notation

1) 1010
2) 10010
3) 11011
4) 75
5) 142
6) 339
BINARY TO DECIMAL AND DECIMAL TO BINARY

Binary Notation Decimal Notation

1) 1010 10
2) 10010 18
3) 11011 27
1001011 4) 75
10001110 5) 142
101010011 6) 339
BINARY TO DECIMAL

1) 1010 = 2ˆ3 2ˆ2 2ˆ1 2ˆ0


1 0 1 0
1(2ˆ3)=8 0(2ˆ2)=0 1(2ˆ1)=0 0(2ˆ0)=0

= 8+2
= 10
2) 10010 = 2ˆ4 2ˆ3 2ˆ2 2ˆ1 2ˆ0
1 0 0 1 0
1(2ˆ4)=1 0(2ˆ3)= 0(2ˆ2)= 1(2ˆ1)= 0(2ˆ0)=
6 0 0 2 0
= 16 + 2
= 18
BINARY TO DECIMAL

3) 11011 = 2ˆ4 2ˆ3 2ˆ2 2ˆ1 2ˆ0


1 1 0 1 1
16 8 0 2 1

= 16 + 8 + 2 + 1
= 27
DECIMAL TO BINARY

4) 75 = 1001011
75/2 = 37 R1 Least Significant Bit (LSB)
37/2 = 18 R1
18/2 = 9 R0
9/2 = 4 R1
4/2 = 2 R0
2/2 = 1 R0
½ = 0 R1 Most Significant Bit (MSB)
DECIMAL TO BINARY

5) 142 = 10001110
142/2 = 71 R0
71/2 = 35 R1
35/2 = 17 R1
17/2 = 8 R1
8/2 = 4 R0
4/2 = 2 R0
2/2 = 1 R0
½ = 0 R1
6) 339 = 101010011
CONVERT THE FOLLOWING NOTATION

Binary Decimal
1) 11
2) 110111
3) 1001011111
4) 1111100110
5) 1001000110
6) 606
7) 623
8) 441
9) 1109
10) 8634
CONVERTING TEXT TO BINARY

ASCII - American Standard Code for


Information Interchange
- a character encoding standard for
electronic communications
- it represent text in computers,
telecommunications equipment, and
other devices
- a code for representing 128 English
characters
This codes represent text which makes it possible
to transfer data from one computer to another.
ASCII VALUES
A 65 a 97
B 66 b 98
C 67 c 99
D 68 d 10
E 69 e 101
F 70 f 102
G 71 g 103
H 72 h 104
I 73 i 105
J 74 j 106
K 75 k 107
L 76 l 108
M 77 m 109
N 78 n 110
O 79 o 111
P 80 p 112
Q 81 q 113
R 82 r 114
S 83 s 115
T 84 t 116
U 85 u 117
V 86 v 118
W 87 w 119
X 88 x 120
Y 89 y 121
Z 90 z 122
CONVERTING TEXT TO BINARY

ABC
65 66 67
32 R1 33 R0 33 R1
16 R0 16 R1 16 R1
8 R0 8 R0 8 R0
4 R0 4 R0 4 R0
2 R0 2 R0 2 R0
1 R0 1 R0 1 R0
0 R1 0 R1 0 R1
100000 100001 100001
1 0 1
Therefore, ABC= 1000001 1000010 1000011
CONVERTING TEXT TO BINARY

USJR= 1010101
1010011
1001010 1010010
CONVERTING BINARY TO TEXT

What word is it?


a) 1010000 1110010 1100001 1111001

b) 1010011 1110100 1110101 1100100


1111001
CONVERTING BINARY TO TEXT

1010000 =2ˆ6 + 2ˆ4


= 80 =P
1110010 =2 ˆ6 + 2 ˆ5 + 2 ˆ4 + 2 ˆ1

=114 = r
1100001 = 2 ˆ6 + 2 ˆ5 + 2 ˆ0
=97 = a
1111001 =2 ˆ6 + 2 ˆ5 + 2 ˆ4 + 2 ˆ3
+ 2 ˆ0
CONVERTING BINARY TO TEXT

What word is it?


a) 1010000 1110010 1100001 1111001
Pray

b) 1010011 1110100 1110101 1100100


1111001
Study
ACTIVITY

A. Using the ASCII table, write the following words


in ASCII codes (use base 2 notation).
1) MMW
2) LoVe
3) Duterte
4) pass
5) DMS

B. Convert the following and identify the word/s.


1000001 1100100 1100111 1101100 1100001
1101110 1110100 100111
1) MMW= 1001101 1001101 1010111
2) LoVe= 1001100 1101111 1010110 1100101
3) Duterte= 1000100 1110101 1110100
1100101 1110010 1110100 1100101
4) pass= 1110000 1100001 1110011 1110011
5) DMS= 1000100 1001101 1010011

1000001 1100100 1100111 1101100 1100001


1101110 1110100 100111= Adelante

You might also like