Skip to content
The Computer Science
TheCScience
  • Engineering Subjects
    • Human Values
    • Computer System Architecture
    • Microprocessor
    • Digital Communication
    • Internet of Things
  • NCERT Solutions
    • Class 12
    • Class 11
  • Solutions
    • HackerRank
      • C Solutions
      • C++ Solutions
      • Java Solutions
      • Python Solutions
      • Algorithms Solutions
      • Data Structures Solutions
    • HackerEarth Solutions
    • Leetcode Solutions
  • JEE 2027
The Computer Science
TheCScience

Number System in Computer | Microprocessor Tutorials

YASH PAL, April 2, 2022April 24, 2026

Number System in Computer – In a digital computer, everything, whether it is some data, a result, or an 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.

However, 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).

Table of Contents

  • Computer Number Systems
    • Binary number system
    • Octal number system
    • Hexadecimal number system
    • Binary coded decimal (BCD) numbers
    • ASCII code

Computer Number Systems

Here are the 5 types of Number systems that a computer uses:

  1. Binary
  2. Octal
  3. Hexadecimal
  4. Binary coded decimal number
  5. ASCII (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 system

The 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 Number Binary Number   
D1D0B3B2B1B0
000000
010001
020010
030011
040100
050101
060110
070111
081000
091001
101010
111011
121100
131101
141110
151111
Decimal numbers with equivalent Binary Numbers

The 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 system

The 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. The table shows the counting in octal numbers with their equivalent in decimal and binary systems.

Decimal NumberBinary NumberOctal Number
D1 D0B3 B2 B1 B0O1 O0
0 00 0 0 00 0
0 10 0 0 10 1
0 20 0 1 00 2
0 30 0 1 10 3
0 40 1 0 00 4
0 50 1 0 10 5
0 60 1 1 00 6
0 70 1 1 10 7
0 81 0 0 01 0
0 91 0 0 11 1
1 01 0 1 01 2
1 11 0 1 11 3
1 21 1 0 01 4
1 31 1 0 11 5
1 41 1 1 01 6
1 51 1 1 11 7
Decimal numbers with equivalent Binary and Octal Numbers

Hexadecimal number system

The hexadecimal number system is very popular among computer users. 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 letters A to F. Since numeric digits and letters are used to represent the digits in the hexadecimal number system, this is an alphanumeric number system. The table below shows the hexadecimal numbers with their binary and decimal equivalents.

HexadecimalDecimalBinary   
000000
110001
220010
330011
440100
550101
660110
770111
881000
991001
A101010
B111011
C121100
D131101
E141110
F151111
Hexadecimal numbers with equivalent Binary and Decimal Numbers

Binary coded decimal (BCD) numbers

In 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 code

The American Standard Code for Information Interchange (ASCII) is commonly used in data communication. It is a seven-bit code, and its 128 (27) 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.

Microprocessor Subject Tutorials & Notes | Beginners Guide
computer fundamentals engineering subjects Microprocessor engineering subjectsmicroprocessor

Post navigation

Previous post
Next post

Leave a Reply

Your email address will not be published. Required fields are marked *

Introduction to Microprocessor
Generations of Computer
Microprocessor Types
Types of Computer Systems
Types of Programming Languages
Basic Computer Structure
Interfacing Logic Devices
Number System in Computer
Number System Arithmetic – Addition & Subtraction

Microprocessor as CPU
8085 Microprocessor Architecture
Pin Configuration of 8085 Microprocessor
Demultiplexing of Address and Data Bus in 8085 Microprocessor
Basic Operations of the 8085 Microprocessor
Memory Organization in 8085 Microprocessor

Microprocessor memory structure
Memory Interfacing with 8085 Microprocessor
Memory address decoding in a microprocessor
Input/Output Interfacing in Microprocessor

8085 Microprocessor Programming Model
8085 Assembly Language Programming
8085 Microprocessor Instructions
Microprocessor Programming Steps
Flowchart Design of a Program
8085 Microprocessor Data Transfer Instructions
8085 Microprocessor Arithmetic Instructions
8085 Microprocessor Logical Instructions
8085 Microprocessor Branch Instructions
8085 Microprocessor Machine-Processor Control Instructions
Basic Structure of an Assembly Language Program
Programming Techniques for Repeated Tasks
Debugging of a Microprocessor Program

8085 Microprocessor Timing Operations
Timing Diagram of 8085 Microprocessor
Time Delay in Microprocessor
Stack in 8085 Microprocessor
Subroutine in 8085 Microprocessor
MACRO in Microprocessor

Interrupts in 8085 Microprocessor
Digital to Analog Converter (DAC) in Microprocessor
Analog to Digital Converter (ADC) in Microprocessor

Programmable Peripheral Interface
8255 (PPI) Programmable Peripheral Interface
Programmable Interval Timer (PIT) 8253/8254
Programmable Interrupt Controller (PIC) 8259
Direct Memory Access (DMA) Controller 8257

8086 Microprocessor Architecture, Instructions, and Pin Diagram
Addressing Modes of the 8086 Microprocessor
Instruction Set of 8086 Microprocessor
8088 Microprocessor Architecture with Pin Diagram
Difference between 8085, 8086, and 8088 Microprocessors
80186 Microprocessor Architecture
80286 Microprocessor Architecture & Features
80386 Microprocessor Architecture & Features
80486 Microprocessor Architecture & Features
80586 (Pentium) Microprocessor Architecture & Features

8051 Microcontroller Architecture
8051 Microcontroller Memory Organization
8051 Microcontroller Pin Configuration & Programming Model
8051 Microcontroller Timers and Counters
Serial Communication in 8051 Microcontroller
Interrupts of the 8051 Microcontroller
Addressing Modes of the 8051 Microcontroller
Intel MMX Architecture
Dual Core Processor

LED & Multiplexed Display Interfacing with Microprocessor
Liquid Crystal Display (LCD) Pin Configuration & Interfacing
Matrix Keyboard Interfacing with Microprocessor
8279 Keyboard/Display Controller
Programmable Communication Interface (USART) 8251
Serial Communication Standards in Microprocessor
Computer System Standard Buses

TheCScience

At TheCScience.com, our mission is to make quality education accessible to everyone. We provide in-depth, easy-to-understand articles covering Secondary, Senior Secondary, and Graduation-level subjects.

Our content is designed to simplify complex concepts through clear explanations, diagrams, and structured learning—helping students build strong fundamentals and succeed academically without financial barriers.

Pages

About US

Contact US

Privacy Policy

DMCA

Our Tools

Hosting - get 20% off

Engineering Subjects

Internet of Things

Human Values

Digital Communication

Computer System Architecture

Microprocessor

Programming Tutorials

Data Structure and Algorithm

C

Java

NCERT

Class 12th

©2026 TheCScience | WordPress Theme by SuperbThemes