01:198:211 Lecture 10: Floating Point and Intro to Assembly

72 views3 pages

Document Summary

Cs211-lecture 10-floating point and intro to assembly: floating point, computers are somewhat imprecise when representing certain floating point numbers, certain numbers have a binary representation that can be infinite. Binary can also have scientific notation; the right side is just based on 2"s instead of 10"s: most computers follow something called the ieee 754 standard for representing floating point numbers. Floats have 32 bits, 1 bit for sign, 8 bits for exponent, and 23 bits for mantissa(the significant digits): three different cases for representing floats, normalized values, have some non-zero exponent. The exponent is the binary value minus the bias, which is 2k-1-1 where k is the number of bits allocated. The integer component of the mantissa is 1, with the rest of the information forced to the right of the decimal point: denormalized values: Exponent is 1 - bias: mantissa = mantissa field, doubles have 64 bits,1 bit for sign, 11 bit exponent, 52 bit mantissa.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents