























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Various methods for encoding and representing different types of data, including integers, floating points, text, and unicode. It covers topics such as integer representation, handling negative numbers, floating point representation, text encoding, and unicode. The document also touches upon the importance of saving space and using efficient encoding schemes.
Typology: Slides
1 / 63
This page cannot be seen from the preview
Don't miss anything!
























































http://www.sheldonbrown.com/tire-sizing.html
The first step is obvious:
The first step was obvious:
But what about this:
sign bit
What should we do about:
What should we do about:
If we always want two places after. : Then we could write:
And then always treat it as though the decimal point were there.
We’ll do it in decimal:
Number Floating Point
4.32 4.32e
456.2 4.56e+
Multiply by 10 2
We’ll do it in decimal:
Number Floating Point
4.32 4.32e
456.2 4.56e+
.0004 4.0e-
Multiply by 10 -
We’ll do it in decimal:
Number Floating Point
4.32 4.32e
456.2 4.56e+
.0004 4.0e-
56784657846352*34526251 1960561349752268586352
1960561349752268586352/2 9.802806748761343e+
int(_) 4388
Where did the .664 cents go?
We can force Python to round instead of truncate.
Our balance is $1,567.38 and the interest rate is 2.8%:
Computers have revolutionized our world. They have changed the course of our daily lives, the way we do science, the way we entertain ourselves, the way that business is conducted, and the way we protect our security.
Computers have revolutionized our world. They have changed the course of our daily lives, the way we do science, the way we entertain ourselves, the way that business is conducted, and the way we protect our security.
Les ordinateurs ont révolutionné notre monde. Ils ont changé le cours de notre vie quotidienne, notre façon de faire la science, la façon dont nous nous divertissons, la façon dont les affaires sont menées, et la façon dont nous protégeons notre sécurité.