This chapter covers encoding schemes used to map characters to binary format, focusing on ASCII, ISCII, and UNICODE. It also explores various number systems such as decimal, binary, octal, and hexadecimal, and conversion methods between them.
In modern computing, the way we interact with computers, specifically through keyboard inputs, is based on specific encoding schemes. These schemes convert input from human-readable form into a format that computers can process (binary). For instance, when typing the letter "A," it is represented as the decimal value 65 and, in binary, it becomes 1000001.
Encoding is the process of converting text into specific codes. Standard encoding schemes ensure that a specific character corresponds to a unique code across all systems. This standardization allows for consistent communication and processing of text data across diverse systems.
| Character | Decimal Value | |------------|---------------| | Space | 32 | | ! | 33 | | A | 65 | | a | 97 |
To encode the word DATA into its ASCII and binary representations:
Significantly, ISCII (Indian Script Code for Information Interchange) was developed to accommodate Indian languages on computers, allowing for an 8-bit representation suitable for 256 characters. The UNICODE standard has since replaced many of the older encoding systems, offering a unique identifier for every character in virtually all known languages, enhancing compatibility between platforms.
Different number systems are critical in computing. Unique characters or symbols in these systems facilitate the representation of numeric values, which relate directly to computer processing. The four primary number systems used are:
The Decimal system is the most familiar, utilizing 10 digits. Each digit's placement and value are crucial (i.e., positional value). An example, 237.25 is computed as:
The Binary system is essential in computing, as it represents states of transistors through 0s and 1s. Each binary number (e.g., 1011) can convert to decimal or other systems.
Converting numbers between systems is fundamental in computing:
Decimal to Binary example:
Fractional Conversions follow similar rules; multiply the fraction to convert to desired systems. For instance, to convert 0.25 to binary, multiply by 2:
0.25 x 2 = 0.50 (0)
0.50 x 2 = 1.00 (1)
Binary representation becomes 0.01.