Computer Number System
Computer Number System
(Unpacked)
Computer Number Systems 5. differentiate the various computer 1. identify and explain the key differences
binary number systems between the computer number systems
octal 2. correctly categorize any given
decimal number as belonging to one of
hexadecimal the four computer number
systems
3. demonstrate a critical
understanding of the strengths
and weaknesses of each
computer number system
Conversion of Computer Number Systems 6. apply conversion of computer 1. explain the rationale behind converting
binary number systems between different computer number
systems
Conversion of Computer Number Systems 2. accurately convert numbers between
octal binary, decimal, octal, and hexadecimal
within a specified range, using
Conversion of Computer Number Systems appropriate conversion methods
decimal 3. value the efficiency and accuracy of
Conversion of Computer Number Systems converting between computer number
hexadecimal TechVoc
systems for various applications
Congres
Conversion of
Number Systems
TechVoc
Congres
TechVoc
Congres
Review place value
TechVoc
Congres
Review place value
4,321
Thousands Hundreds Tens Ones
4 3 2 1
TechVoc
Congres
1. The Binary Number System
• Binary is used in the design and implementation of
computer’s hardware and software.
• Binary Notion: 1 (True, Yes, On) and 0 (False, No, Off)
• 0 and 1 is called bits (binary digits)
• Binary is a base 2 number system.
• Base 2 number system is what all computers and data
communications used to communicated and process data.
TechVoc
Congres
2. The Decimal Number System
• Sum of each digit times a power of ten in expanded
notation.
Example:
5675 = 5x103 + 6x102 + 7x101 + 5x100
= 5x1000 + 6x100 + 7x10 + 5x1
= 5000 + 600 + 70 + 5
= 5675 TechVoc
Congres
A. Decimal to Binary Number
Conversion
• Decimal numbers can be converted into binary numbers
by dividing it by 2.
Example: Divide Quotient Remainder
910 =9/2 4 1
=4/2 2 0
=2/2 1 0
=1/2 0 1
=10012
TechVoc
Congres
B. Binary to Decimal Number Conversion
Example:
10012 = 1x23 + 0x22 + 0x21 + 1x20
=8+0+0+1
= 910 TechVoc
Congres
Your turn!
Directions: Convert the following Decimal
Numbers to Binary Numbers.
1. 1210
2. 2910
3. 810
TechVoc
Congres
Answer:
Decimal Numbers to Binary Numbers.
1. 1210 = 11002
2. 2910 = 111012
1. 1102
2. 1012
3. 11102 TechVoc
Congres
Answer:
Binary Numbers to Decimal Numbers.
1. 1102 = 1 x 22 + 1 x 21 + 0 x 20
=
4 + 2+ 0 = 610
2.. 1012 = 510
2. 11102 = 1410
TechVoc
Congres
3. The Octal Number System
•Octal Number has eight basic digits: 0, 1, 2, 3,
4, 5, 6, and 7.
•Octal Number System is used to conserve
memory storage location of the computer
system by grouping the binary digits into three.
•3 bits in 1 octal number.
TechVoc
Congres
A. Decimal to Octal Number
Conversion
• Divide the decimal number by 8. Take note the remainder
after each computation of division operation. The
computation will stop when the quotient becomes 0.
Example:
148 = 1x81 + 4x80
=8+4
= 1210 TechVoc
Congres
C. Octal to Binary Number
Conversion
• Multiply each octal number by its positional value.
Sum up all the products.
OCTAL BINARY
0 000
1 001
2 010
3 011
4 100
5 101
6 110
7 111
TechVoc
Congres
C. Octal to Binary Number
Conversion OCTAL BINARY
Example: 0 000
1 001
138 2 010
3 011
= 1 = 0012 4 100
= 3 = 0112 5 101
6 110
= 0010112 7 111
TechVoc
Congres
C. Binary to Octal Number
Conversion OCTAL BINARY
Example: 0 000
1 001
0010112 2 010
3 011
= 0012 = 1 4 100
5 101
= 0112 = 3 6 110
= 138 7 111
TechVoc
Congres
Your turn!
Directions: Convert the following Decimal
Numbers to Octal Numbers.
1. 1910
2. 4110
3. 10610
TechVoc
Congres
Answer*
Convert the following Decimal Numbers to
Octal Numbers.
1. 1910 = 238
2. 4110 = 518
3. 10610 = 1528
TechVoc
Congres
Your turn!
Directions: Convert the following Octal
Numbers to Decimal Numbers.
1. 778
2. 1238
3. 1738
TechVoc
Congres
Answer:
Octal Numbers to Decimal Numbers.
1. 778 = 7 x 81 + 7x 80
= 56 + 7
= 6310
2. 1238 = 8310
3. 1738 = 12310
TechVoc
Congres
Your turn!
Directions: Convert the following Octal
Numbers to Binary Numbers.
1. 778
2. 1238
3. 1738 TechVoc
Congres
Answer:
Directions: Convert the following Octal
Numbers to Binary Numbers.
1. 778
2. 1238
3. 1738 TechVoc
Congres
Your turn!
Directions: Convert the following Binary Numbers
to Octal Numbers.
1. 1012
2. 11012
3. 110.1012
TechVoc
Congres
3. The Hexadecimal Number
System
•Hexadecimal Number has 10 basic digits:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and six letters: A
= 10, B = 11, C = 12, D = 13, E = 14, F =
15.
•In Hex number system the binary digits
are grouped into four.
TechVoc
Congres
A. Decimal to Hexadecimal Number
Conversion
• Divide the decimal number by 16. Take note of the remainder after
each computation of division operation. The computation process
will stop when the quotient becomes 0. Read the remainders in an
upward direction or the last number is to be read first.
Example:
4CD16 = 4x162 + 12x161 + 13x160
= 4x256 + 12x16 + 13
= 1,024 + 192 + 13
= 122910
TechVoc
Congres
C. Hexadecimal to Binary Number
Conversion
HEX BINARY HEX BINARY
Example: 0 0000 8 1000
1 0001 9 1001
2C16 2 0010 A 1010
= 2 = 00102 3 0011 B 1011
= C = 11002 4 0100 C 1100
= 001011002 5 0101 D 1101
6 0110 E 1110
7 0111 F 1111
TechVoc
Congres
Your turn!
Directions: Convert the following Decimal
Numbers to Hex Numbers.
1. 2910
2. 4210
3. 20910
TechVoc
Congres
Your turn!
Directions: Convert the following Hex
Numbers to Decimal Numbers.
1. 1716
2. 72316
3. 61516
4. F616 TechVoc
Congres
Your turn!
Directions: Convert the following Hex
Numbers to Binary Numbers.
1.1716
2.72516
3.78516
TechVoc
Congres
Your turn!
Directions: Convert the following Binary
Numbers to Hex Numbers.
1. 11012
2. 110111012
3. 1110.10112 TechVoc
Congres