Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Overig

Floating Point Binary

Beoordeling
-
Verkocht
-
Pagina's
7
Geüpload op
20-04-2023
Geschreven 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.

Instelling
Vak

Voorbeeld van de inhoud

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

Geschreven voor

Study Level
Publisher
Subject
Course

Documentinformatie

Geüpload op
20 april 2023
Aantal pagina's
7
Geschreven in
2022/2023
Type
OVERIG
Persoon
Onbekend

Onderwerpen

€8,26
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kan je een ander document kiezen. Je kan het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
pencilcaseman

Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
pencilcaseman Hampton School
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
-
Lid sinds
2 jaar
Aantal volgers
0
Documenten
5
Laatst verkocht
-

0,0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Populaire documenten

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen