Table of contents |
|
Introduction |
|
Types of Number Systems |
|
Why Different Systems Matter |
|
Advanced Concepts in Number Systems |
|
Electronic Storage of Numbers |
|
Alphanumeric Codes |
|
ASCII |
|
Unicode |
|
Most people think of the decimal system (based on 10) as the go-to number system. It’s what we use every day—counting on our 10 fingers feels natural! But there are many other number systems out there, and they’re used for specific reasons. For example:
In digital systems, number systems help represent information using digits. The value of a digit depends on:
Different number systems suit different purposes—some are ancient, others are modern, but all are still useful today. Let’s explore the main ones!
In the digital computer, there are various types of number systems used for representing information.
Generally, a binary number system is used in the digital computers. In this number system, it carries only two digits, either 0 or 1. There are two types of electronic pulses present in a binary number system.
The first one is the absence of an electronic pulse representing '0'and second one is the presence of electronic pulse representing '1'. Each digit is known as a bit. A four-bit collection (1101) is known as a nibble, and a collection of eight bits (11001010) is known as a byte.
The location of a digit in a binary number represents a specific power of the base (2) of the number system.
Key terms:
Bit: One digit (0 or 1).
Nibble: 4 bits (e.g., 1101).
Byte: 8 bits (e.g., 11001010).
How it works: Each position is a power of 2.
Example: (10100)₂ = (1 × 2⁴) + (0 × 2³) + (1 × 2²) + (0 × 2¹) + (0 × 2⁰)
= 16 + 0 + 4 + 0 + 0 = 20 in decimal.Examples: (10100)₂, (11011)₂, (11001)₂, (000101)₂, (011010)₂.
How it works: Each position represents a power of 10.
Example: 2541 = (2 × 1000) + (5 × 100) + (4 × 10) + (1 × 1)
= (2 × 10³) + (5 × 10²) + (4 × 10¹) + (1 × 10⁰)
= 2000 + 500 + 40 + 1 = 2541Examples: 123, 4567, 908.
The octal number system has base 8(means it has only eight digits from 0 to 7). There are only eight possible digit values to represent a number. With the help of only three bits, an octal number is represented. Each set of bits has a distinct value between 0 and 7.
Below, we have described certain characteristics of the octal number system:
Characteristics:
Examples:
(273)8, (5644)8, (0.5365)8, (1123)8, (1223)8.
Examples:
(FAC2)16, (564)16, (0ABD5)16, (1123)16, (11F3)16.
Floating point notation shifts the radix point by tweaking the exponent, keeping the number’s value the same. Take 102.610: it can be written as 1.026 × 10², moving the point left and raising the exponent. This trick lets calculators and computers handle numbers flexibly, especially with fractions.
The American Standard Code for Information Interchange (ASCII), pronounced "as-kee," emerged in 1967 (updated 1986) as a 7-bit code (128 characters) based on English alphabet order. It includes 95 printable characters—26 uppercase (A–Z), 26 lowercase (a–z), 10 numerals (0–9), 33 specials (e.g., + = 0101011)—plus 33 non-printing controls. Examples: A = 1000001, 9 = 0111001, d = 1100100. The 8-bit version (ASCII-8) adds a parity bit (e.g., A = 01000001), supporting 256 characters. Typing "PRINT X" on an ASCII-7 keyboard yields 1010000101001010010101001110101010001000001011000 (hex 50 52 49 4E 54 30 58). Another case: ASCII-8 message 10110001, 10110101, 10100101, 10100101, 10101110 translates to QUEEN (Q, U, E, E, N).
The Extended Binary Coded Decimal Interchange Code (EBCDIC) pronounced as "ebi-si disk" is another frequently used code by computers for transferring alphanumeric data. It is 8-bit code in which the numerals (0-9) are represented by the 8421 BCD code preceded by 1111. Since it is a 8-bit code, it can almost represent 23 (= 256) different characters which include both lowercase and uppercase letters in addition to various other symbols and commands.
EBCDIC was designed by IBM corp. so it is basically used by several IBM· models. In this code, we do not use a straight binary sequence for representing characters, as was in the case of ASCII code. Since it is a 8-bit code, so it can be easily grouped into groups of 4 so as to represent in arm of hexadecimal digits. By using the hexadecimal number system notation, the amount of digits used to represent various characters and special characters using EBCDIC code is reduced in volume of one is to four. Thus 8-bit binary code could be reduced to 2 hexadecimal digits which are easier to decode if we want to view the internal representation in memory. The above table lists the EBCDIC code for certain characters.
Read the above table as you read the graph. Suppose you want to search for EBCDIC code for letter 'A’. To that case, the value of X3 X2 Xl X0 bits is 0001 and value X7 X6 X5 X4 bits is 1100.
Therefore, EBCDIC code for letter 'A’ is 11000001(A). Similarly, the EBCDIC code for 'B' is 11000010(B).
The EBCDIC code '=' is 01111110
The EBCDIC code for '$' is 0101 1011
The ASCII and EBCDIC encodings and their variants that we have studied suffer from some limitations.
1. These encodings do not have a sufficient number of characters to be able to encode alphanumeric data of all forms, scripts and languages. As a result, they do not permit multilingual computer processing.
2. These encoding suffer from incompatibility. For example: code 7A (in hex) represents the lowercase letter 'Z' in ASCII code and the semicolon sign ';' in EBCDIC code.
To overcome these limitations, UNICODE also known as universal code was developed jointly by the Unicode Consortium and the International Organization for Standardization (ISO). The Unicode is a 16-bit code so it can represent 65536 different characters. It is the most complete character encoding scheme that allows text of all forms and languages to be encoded for use by computers. In addition to multilingual support, it also supports a comprehensive set of mathematical and technical symbols, greatly simplifying any scientific information interchange.
UNICODE has a number of uses:
2. All World Wide Web consortium recommendations have used Unicode as their document character set since HTML 4.0.
3. It partially addresses the new line problem that occurs when trying to read a text file on different platforms. It defines a large number of characters that can be recognized as line terminators.
Unicode is currently being adopted by top computer industry leaders like Microsoft, Apple, Oracle, Sun, SAP and many more in their products.
27 videos|333 docs
|
1. What is the number system? | ![]() |
2. How does the decimal number system work? | ![]() |
3. What is the binary number system? | ![]() |
4. How do you convert a decimal number to a binary number? | ![]() |
5. What is the significance of the hexadecimal number system? | ![]() |