Csi 02
Csi 02
NUMBERING SYSTEMS
Subtitle
Content
2.1 Introduction
2.2 Positional Number Systems
2.3 Conversion
Objectives
After studying this chapter, the student should be able to:
Understand the concept of number systems.
Distinguish between non-positional and positional number systems.
Describe the decimal system (base 10).
Describe the binary system (base 2).
Describe the hexadecimal system (base 16).
Describe the octal system (base 8).
Convert a number in binary, octal, or hexadecimal to a number in the decimal system.
Convert a number in the decimal system to a number in binary, octal, or hexadecimal.
Find the number of digits needed in each system to represent a particular value.
1 - INTRODUCTION
1 - Introduction
A number system (or numeral system) defines how a number can be represented using
distinct symbols.
A number can be represented differently in different systems.
For example, the two numbers (2A)16 and (52)8 both refer to the same quantity, (42)10, but
their representations are different. This is the same as using.
Example 3.1 Convert the binary number (110.11)2 to decimal: (110.11)2 = 6.75
Example 2.5
What is the binary equivalent of for (24)8?
Solution
Write each octal digit as its equivalent bit pattern to get (010100)2.
Binary–hexadecimal conversion
Example 2.4
What is the binary equivalent of (24C)16?
Solution
Each hexadecimal digit is converted to 4-bit patterns:
2 → 0010, 4 → 0100, and C → 1100.
The result is (001001001100)2.
Octal–hexadecimal conversion