• Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
  • Skip to footer

Computer Notes

Library
    • Computer Fundamental
    • Computer Memory
    • DBMS Tutorial
    • Operating System
    • Computer Networking
    • C Programming
    • C++ Programming
    • Java Programming
    • C# Programming
    • SQL Tutorial
    • Management Tutorial
    • Computer Graphics
    • Compiler Design
    • Style Sheet
    • JavaScript Tutorial
    • Html Tutorial
    • Wordpress Tutorial
    • Python Tutorial
    • PHP Tutorial
    • JSP Tutorial
    • AngularJS Tutorial
    • Data Structures
    • E Commerce Tutorial
    • Visual Basic
    • Structs2 Tutorial
    • Digital Electronics
    • Internet Terms
    • Servlet Tutorial
    • Software Engineering
    • Interviews Questions
    • Basic Terms
    • Troubleshooting
Menu

Header Right

Home » Electronics » Binary » Excess-3 Code (XS3)
Next →
← Prev

Excess-3 Code (XS3)

By Dinesh Thakur

Excess-3, also called XS3, is a non-weighted code used to express decimal number-s. It is another important binary code. It is particularly significant for arithmetic operations as it overcomes the shortcomings encountered while using the 8421 BCD code to add two decimal digits whose sum exceeds 9. This code is used in some old computers.

The Excess-3 code for a given decimal number is determined by adding ‘3’ to each decimal digit in the given number and then replacing each digit of the newly found decimal number by its four bit binary equivalent. The table gives is the Excess-3 code. For example, XS3 code of 24 is obtained as

  2       4

+3    +3

  5       7

0101 0111

Thus, XS3 code of 24 is 0101 0111.

The key feature of the Excess-3 code is .that it is self complementing. In other words, the l’s complement of an Excess- 3 number is the Excess- 3 code for the 9’s complement of the corresponding decimal number. For example, the Excess- 3 code for decimal 6 is 1001. The l’s complement of 1001 is 0110, which is the Excess-3 code for decimal 3, and 3 is the 9’s complement of 6. This property of Excess-3 code makes it useful in some arithmetic operations.

Now let us consider a few examples. The Excess-3 code for decimal number 27 is 01011010.

Similarly, Excess-3 code for (597)10 and (14.57)10 is

(597)10 = (100011001010)

(14.57)10 = (01000111.10001010)

One should note that corresponding to given Excess-3 code, the equivalent decimal number can be determined by first splitting the number into four-bit groups, starting from radix point and then subtracting 0011 from each four-bit group. This gives us 8421 BCD equivalent of the given Excess-3 code, which can then be converted into the equivalent decimal number. For example; Let us suppose we want to determine the decimal equivalent for the Excess-3 code 1000110. First we make group of 4 bits starting from radix point.

Subtracting 0011 from each group, we obtain the new number as 00010011. Its decimal equivalent is 13.

Therefore, (1000110) Excess-3= (13)10

 

You’ll also like:

  1. Classification of Various Binary Code
  2. Gray code
  3. difference between declaring a variable in the General Declaration section of a standard code module and declaring variable in the general declaration section of a form code module?
  4. Hamming Code
  5. Commenting Code in JSP
Next →
← Prev
Like/Subscribe us for latest updates     

About Dinesh Thakur
Dinesh ThakurDinesh Thakur holds an B.C.A, MCDBA, MCSD certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps.

Dinesh Thakur is a Freelance Writer who helps different clients from all over the globe. Dinesh has written over 500+ blogs, 30+ eBooks, and 10000+ Posts for all types of clients.


For any type of query or something that you think is missing, please feel free to Contact us.


Primary Sidebar

Digital Electronics

Digital Electronics

  • Electronics - Codes
  • Electronics - Excess-3 Code
  • Electronics - BCD
  • Electronics - Binary Code Types
  • Electronics - Gray Code
  • Electronics - Digital System
  • Electronics - DSSS
  • Electronics - FHSS
  • Electronics - Analog System
  • Electronics - Diode
  • Electronics - Flip-flop
  • Electronics - Boolean Logic
  • Electronics - Analogue-to-digital
  • Electronics - Radio Modulations Types
  • Electronics - 8088
  • Electronics - ADC
  • Electronics - Breadboard
  • Electronics - 80486
  • Electronics - Amplitude Modulation
  • Electronics - Chip

Other Links

  • Digital Electronics - PDF Version

Footer

Basic Course

  • Computer Fundamental
  • Computer Networking
  • Operating System
  • Database System
  • Computer Graphics
  • Management System
  • Software Engineering
  • Digital Electronics
  • Electronic Commerce
  • Compiler Design
  • Troubleshooting

Programming

  • Java Programming
  • Structured Query (SQL)
  • C Programming
  • C++ Programming
  • Visual Basic
  • Data Structures
  • Struts 2
  • Java Servlet
  • C# Programming
  • Basic Terms
  • Interviews

World Wide Web

  • Internet
  • Java Script
  • HTML Language
  • Cascading Style Sheet
  • Java Server Pages
  • Wordpress
  • PHP
  • Python Tutorial
  • AngularJS
  • Troubleshooting

 About Us |  Contact Us |  FAQ

Dinesh Thakur is a Technology Columinist and founder of Computer Notes.

Copyright © 2023. All Rights Reserved.