Number System – Overview YASH PAL, April 2, 2022December 30, 2024 Number system – In a digital computer everything, whether it is some data, result, or instruction, has to be represented using only 0s and 1s. This is because the digital computer basically uses transistors that are made to work in the ‘OFF’ state or in the ‘ON’ state. The ‘OFF’ state is generally represented as the logic ‘0’ and the ‘ON’ state is represented as the logic ‘1’. This is called a binary number system.Number SystemHowever, the decimal number system which includes 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 is convenient for the programmer and user. The radix or base of this number system is 10. the programmer feeds instructions and data in the alphabet and decimal digits. but for the operation of the computer, these are converted to binary numbers (0s and 1s).Types of Number Systems in ComputerBinaryOctalHexadecimalBinary coded decimal numberASCII (American standard code for information interchange)There are some other systems also, used to represent numbers. some of these are octal and hexadecimal number systems. digital systems like microprocessors, logic circuits, computers, etc. are usually designed to process hexadecimal or octal numbers.Binary Number SystemBinary number systemThe number system with base (or radix) two is known as the binary number system. The digits (0 and 1) are used to represent the numbers in this system. these are known as bits. it is a positional system, i.e. every position is assigned a specific weight.Decimal numbers with equivalent Binary NumbersDecimal Number Binary Number D1D0B3B2B1B0000000010001020010030011040100050101060110070111081000091001101010111011121100131101141110151111The above-given table shows the counting in the binary number system, with their equivalent decimal value. in the binary number system, a group of four bits is known as a nibble and a group of eight bits is known as a byte.Octal number systemThe number system with base (or radix) eight is known as the octal number system. in this system eight digits (0, 1, 2, 3, 4, 5, 6, and 7) are used to represent the numbers. similar to decimal and binary number systems, it is also a positional system. below given table shows the counting in octal numbers with its equivalent in decimal and binary systems.Decimal numbers with equivalent Binary and Octal NumbersDecimal NumberBinary NumberOctal NumberD1 D0B3 B2 B1 B0O1 O00 00 0 0 00 00 10 0 0 10 10 20 0 1 00 20 30 0 1 10 30 40 1 0 00 40 50 1 0 10 50 60 1 1 00 60 70 1 1 10 70 81 0 0 01 00 91 0 0 11 11 01 0 1 01 21 11 0 1 11 31 21 1 0 01 41 31 1 0 11 51 41 1 1 01 61 51 1 1 11 7Hexadecimal number systemThe hexadecimal number system is very popular in computer uses. the base for hexadecimal numbers is 16. in this number system, 16 distinct symbols are required to represent the number. these are numerals 0 to 9 and alphabets A to F.Since numeric digits and alphabets both are used to reprint the digits in the hexadecimal number system. this is an alphanumeric number system. below given table shows the hexadecimal numbers with their binary and decimal equivalents.Number system Arithmetic – Addition & SubtractionHexaDecimal numbers with equivalent Binary and Decimal NumbersHexadecimalDecimalBinary 000000110001220010330011440100550101660110770111881000991001A101010B111011C121100D131101E141110F151111Binary coded decimal (BCD) numberIn most microprocessor-based systems, data are entered and displayed in decimal numbers. however, the data processing inside the microprocessor is performed in binary. the data are entered through a decimal keyboard and the monitor program of the system converts each key into an equivalent 4-bit binary number. this is known as a binary-coded decimal (BCD) number. after conversion, two BCD numbers are stored in an 8-bit register or a memory location. These numbers are called packed BCD.ASCII codeThe American standard code for information interchange (ASCII) is used commonly in data communication. it is a seven-bit code, and its 128 (2^7) combinations are assigned different alphanumeric characters. for example, the hex numbers 30H to 39H represent 0 to 9 ASCII decimal numbers, and 41H to 5AH represent capital letters A through Z. In this code, bit D7 is zero. When an ASCII character is entered through an ASCII keyboard, the microprocessor receives the binary equivalent of an ASCII hex number. computer fundamentals engineering subjects microprocessor engineering subjectsmicroprocessor