Skip to content

VLSIFacts

Let's Program the Transistors

  • Home
  • DHD
    • Digital Electronics
    • Fault Tolerant System Design
    • TLM
    • Verification
    • Verilog
    • VHDL
    • Xilinx
  • Embedded System
    • 8085 uP
    • 8086 uP
    • 8051 uC
  • VLSI Technology
    • Analog Electronics
    • Memory Devices
    • VLSI Circuits
  • Interview
    • Interview Experience
    • Training Experience
    • Question Bank
  • Notifications
  • QUIZ
  • Community
  • Job Board
  • Contact Us
  • Toggle search form

Hexadecimal Arithmetic

Posted on March 12, 2023March 12, 2023 By vlsifacts No Comments on Hexadecimal Arithmetic

Though the computers store everything in binary format, the user interface deals with the hexadecimal format for ease of understanding. For a human, it is easy to deal with hexadecimal than the stream of ones and zeros. So, in this article, we will study the arithmetic of hexadecimal numbers.

One way to perform hexadecimal arithmetic is to convert the hexadecimal numbers to binary numbers, then, using the rules of binary arithmetic perform the binary operations, and finally convert the binary result back to hexadecimal form. Another way is to directly perform the operation on the hexadecimal numbers.

Hexadecimal arithmetic is pretty similar to decimal arithmetic. The only difference is that decimal deals with 10 numbers (0 to 9), whereas hexadecimal deals with 16 numbers (0 to 9 and A, B, C, D, E, F). So in the case of hexadecimal, carry gets generated at 16, and not at 10. Let’s solve a few examples to get used to with hexadecimal arithmetic.

Hexadecimal Addition

Example: (9B3 + 68)16 = ?16

Example of Hexadecimal Addition

(9B3 + 68)16 = A1B16

The LSB place addition generates (3 + 8 =) 11. In hexadecimal “11” is ‘B’. The next place addition is B + 6 = 11 + 6 = 17. Here, the carry is generated when the sum reaches 16 or beyond. So, after the carry is generated, the remaining value is 1 (17 – 16 = 1). The MSB place has 9 and a carry. So, it will generate 9 + 1 = 10, which is ‘A’ in hexadecimal. Thus, the generated Sum is A1B16.

Hexadecimal Subtraction

Example: (9B3 – 68)16 = ?16

Example of Hexadecimal Subtraction

At the LSB place subtraction, 3 is less than 8. So, it borrows 1 from the next place. Now, the Borrow 1 at LSB place would have the value of 16. So, the LSB place subtraction would generate 16 + 3 – 8 = 11. In hexadecimal “11” is ‘B’. In the next place, after the borrow by the LSB, B – 1 = A is remaining. So, the subtraction is A – 6 = 10 – 6 = 4. The MSB place has 9. Thus, the generated result is 94B16.

Previous           Table of Content           Next

Spread the Word

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to email a link to a friend (Opens in new window) Email
  • Click to print (Opens in new window) Print

Like this:

Like Loading...

Related posts:

  1. What is Radix or Base of a Number System?
  2. Synthesis and Functioning of Blocking and Non-Blocking Assignments.
  3. State Machine Diagram for Parity Generator
  4. Positional or Weighted Number System
Digital Electronics Tags:Hexadecimal, Hexadecimal Addition, Hexadecimal Arithmetic, Hexadecimal Subtraction

Post navigation

Previous Post: Understanding Overflow through Examples
Next Post: Floating Point Format

Leave a Reply Cancel reply

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

Top Posts & Pages

  • ASCII Code
  • Circuit Design of a 4-bit Binary Counter Using D Flip-flops
  • AND and OR gate using CMOS Technology
  • NAND and NOR gate using CMOS Technology
  • Difference between $display, $monitor, $write and $strobe in Verilog


 

Copyright © 2025 VLSIFacts.

Powered by PressBook WordPress theme

%d