The Wayback Machine - https://web.archive.org/web/20240730011829/https://www.geeksforgeeks.org/arithmetic-operations-of-binary-numbers/
Open In App

Arithmetic Operations of Binary Numbers

Last Updated : 11 Jan, 2023
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report

Binary is a base-2 number system that uses two states 0 and 1 to represent a number. We can also call it to be a true state and a false state. A binary number is built the same way as we build a normal decimal number. 

Binary arithmetic is an essential part of various digital systems. You can add, subtract, multiply, and divide binary numbers using various methods. These operations are much easier than decimal number arithmetic operations because the binary system has only two digits: 0 and 1. 

Binary additions and subtractions are performed as same in decimal additions and subtractions. When we perform binary additions, there will be two outputs: Sum (S) and Carry (C). 

1. There are four rules for binary addition: 

2. There are four rules for binary subtraction: 

 

3. There are four rules for binary multiplication: 

Multiplication is always 0, whenever at least one input is 0. 

4. There are four parts in any division: Dividend, Divisor, quotient, and remainder.  

The result is always not defined, whenever the divisor is 0. 


Similar Reads

Arithmetic Operations of Octal Numbers
Generally, Octal Number representation is expressed by subscript 8 or octal (o). It has a base of 8 digits ranging from 0 to 7 (i.e., 0, 1, 2, 3, 4, 5, 6, 7). Arithmetic operations of octal numbers are also performed the same as decimal or binary arithmetic operations. The addition table for octal numbers is given as below: With the help of the abo
1 min read
Arithmetic Operations of Hexadecimal Numbers
Hexadecimal Numbers have a base of 16 digits ranging from 0 to F (i.e., 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, and A, B, C, D, E, F). A, B, C, D, E, F are equivalent single digits of 10, 11, 12, 13, 14, 15 respectively. Generally, it is expressed by subscript 16 or Hexa (H) or (h). Arithmetic operations of hexadecimal numbers can be performed using addition
2 min read
Basic Laws for Various Arithmetic Operations
Prerequisite - Number System A number is a way to represent arithmetic value, count or measure of a particular quantity. A number system can be considered as a mathematical notation of numbers using a set of digits or symbols. In simpler words the number system is a method of representing numbers. Every number system is identified with the help of
1 min read
Arithmetic Micro-operations in Registers
We can perform arithmetic operations on the numeric data which is stored inside the registers. Example : R3 <- R1 + R2 The value in register R1 is added to the value in the register R2 and then the sum is transferred into register R3. Similarly, other arithmetic micro-operations are performed on the registers. Addition - In addition micro-operat
3 min read
Arithmetic Operations of 2's Complement Number System
We all know how to perform arithmetic operations of binary number systems. However, computer system generally stores numbers in 2's complement format. So it becomes necessary for us to know how arithmetic operations are done in 2's complement. Addition:In 2's complement, we perform addition the same as an addition for unsigned binary numbers. The o
3 min read
Complexity of different operations in Binary tree, Binary Search Tree and AVL tree
In this article, we will discuss the complexity of different operations in binary trees including BST and AVL trees. Before understanding this article, you should have a basic idea about Binary Tree, Binary Search Tree, and AVL Tree. The main operations in a binary tree are: search, insert and delete. We will see the worst-case time complexity of t
4 min read
Overflow in Arithmetic Addition in Binary Number System
In Computer Architecture 2's Complement format is widely used. The discussion of overflow here mainly will be with respect to 2's Complement representation for signed Integer. N-bit 2's Complement representation for signed Integer can represent numbers from [Tex]- 2^{n-1} [/Tex]to [Tex]2^{n-1} -1 [/Tex]4 Bit can represent numbers from ( -8 to 7 ) 5
3 min read
GRE Arithmetic | Exponents and Roots
A number can be expressed in terms of base and its powers or exponent or index (Number = Baseexponent). The base of a number can be a positive or negative integer fraction or decimal. Let a number 4, it can be expressed as 2 * 2 or in terms of base and exponent 22. Here base of the number is 2 and exponent is also 2. Example 8 = 23 125 = 53 1296 =
2 min read
Arithmetic Pipeline and Instruction Pipeline
1. Arithmetic Pipeline : An arithmetic pipeline divides an arithmetic problem into various sub problems for execution in various pipeline segments. It is used for floating point operations, multiplication and various other computations. The process or flowchart arithmetic pipeline for floating point addition is shown in the diagram. Floating point
3 min read
Arithmetic Circuits
Arithmetic circuits can perform seven different arithmetic operations using a single composite circuit. It uses a full adder (FA) to perform these operations. A multiplexer (MUX) is used to provide different inputs to the circuit in order to obtain different arithmetic operations as outputs.4-bit Arithmetic Circuit : Consider the following 4-bit Ar
1 min read
three90RightbarBannerImg