0% found this document useful (0 votes)
6 views

Binary Arithmetic

Uploaded by

Yash Rajole
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Binary Arithmetic

Uploaded by

Yash Rajole
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Binary Arithmetic

Introduction to binary arithmetic

At the core of computing lies the power of binary, the fundamental


building blocks that underpin the digital world. By mastering this simple
system of 0s and 1s, we unlock the secrets of technology and gain the
ability to manipulate its very fabric.
Binary Number System
Base-2 system

Only uses 0 and 1

1 Place Values 2 Conversion


Each position represents a Convert decimal to binary
power of 2 and vice versa

3 Applications
Computers, digital electronics
Binary Addition
Similar to decimal addition

Carry-over to next column if sum exceeds 1

0+0=0 0+1=1 1+0=1 1+1=0


(carry 1)
Binary Subtraction
Borrow from next column if subtrahend is larger

Similar rules to decimal subtraction

Example Explanation

101 - 010 Subtract each digit from right to left

Result: 011 Borrow when needed


Binary Multiplication
Similar to decimal multiplication

Multiply each digit by the multiplier

Step 1
Multiply each digit of the multiplicand by the multiplier

Step 2
Shift each partial product one place to the left

Step 3
Add the partial products together
Binary Division
Similar to decimal division

Divide the dividend by the divisor

Step 1
Step 3
Compare the divisor with the leftmost part of
the dividend Bring down the next digit of the dividend

1 2 3 4

Step 2 Step 4
Subtract the divisor from the dividend Repeat steps 1-3 until the dividend is less
than the divisor
bitwise Operations
Operate on individual bits

AND, OR, XOR, NOT, SHIFT

AND OR XOR NOT


Both bits must be 1 At least one bit must be 1 Bits must be different Flips the bit
Signed Binary Numbers
Represent positive and negative numbers

Sign bit indicates positive or negative

Two's Complement One's Complement


Commonly used for signed Alternative method for
binary numbers representing signed numbers
Floating-Point Binary Numbers
Represent real numbers with fractional parts

Use exponent and mantissa to represent values

Example Diagram
1.0 x 2^3 Shows the structure of a floating-point number
Applications of Binary Arithmetic
Basis for digital computers and electronics

Used in data processing, communication, and more

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy