100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Other

Floating Point Binary

Rating
-
Sold
-
Pages
7
Uploaded on
20-04-2023
Written in
2022/2023

This document contains notes on binary floating point numbers, including basic arithmetic, conversion to and from base-10, error calculations, signed floating point numbers, and more.

Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Study Level
Publisher
Subject
Course

Document information

Uploaded on
April 20, 2023
Number of pages
7
Written in
2022/2023
Type
Other
Person
Unknown

Subjects

Content preview

Binary Arithmetic
#computer-science #binary #bases #arithmetic


Addition
There are only five necessary operations in binary:

02 + 02 = 02

02 + 12 = 12

12 + 02 = 12

12 + 12 = 102

12 + 12 + 12 = 112




Carry Bits

In the last two cases above, the left-hand bit is a carry bit. There are
three options for dealing with these:

1. Carry it into the next calculation
2. Ignore it
3. Throw an exception

, Fixed Point Binary
Run Code Block
Run Code Block
#computer-science #binary #bases #arithmetic

See also: Floating Point Binary

In denary, place values right of the decimal point have negative index
values . This is the same in binary

Index: 2 1 0 -1 -2 -3
3 4 1 . 1 0 2

This is base 10 ^^^



Index: 2 1 0 -1 -2 -3 -4 -5
0 1 0 . 1 0 1 1 0
Place 4 1 1/2 1/8 1/32
Value: 2 1/4 1/16

Result: = 2.6875 (base 10)


This representation works for both signed and unsigned integers.


An Issue

Some decimals, such as 0.1, cannot be represented exactly in binary.

0.12 ≡ 0.000110011001100110011. . .2




Fixed Point Representation
When encoding fractional numbers in binary, there are two main constraints:

1. There are a set number of bits available for encoding the data
2. There is no special character for where the binary point goes
$8.94
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
pencilcaseman

Document also available in package deal

Get to know the seller

Seller avatar
pencilcaseman Hampton School
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
2 year
Number of followers
0
Documents
5
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions