This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: CS61C L16 Floating Point Representation II (1) Wawrzynek, Fall 2007 UCB 10/3/2007 John Wawrzynek (www.cs.berkeley.edu/~johnw) wwwinst.eecs.berkeley.edu/~cs61c/ CS61C Machine Structures Lecture 16  Floating Point Numbers II CS61C L16 Floating Point Representation II (2) Wawrzynek, Fall 2007 UCB Review Floating Point lets us: Represent numbers containing both integer and fractional parts; makes efcient use of available bits. Store approximate values for very large and very small #s. IEEE 754 Floating Point Standard is most widely accepted attempt to standardize interpretation of such numbers (Every desktop or server computer sold since ~1997 follows these conventions) Summary (single precision): 31 S Exponent 30 2322 Signicand 1 bit 8 bits 23 bits (1) S x (1 + Signicand) x 2 (Exponent127) Double precision identical, except with exponent bias of 1023 Normalized form. Exponent keeps track of position of binary point. CS61C L16 Floating Point Representation II (4) Wawrzynek, Fall 2007 UCB Administrivia Midterm 1, 10/16 (less than 2 weeks) 155 Dwinelle, 79pm sharp Material Through 10/5 Open Book/Notes, but no electronic devices of any kind! CS61C L16 Floating Point Representation II (5) Wawrzynek, Fall 2007 UCB Administrivia How should we study for the midterm? Form study groups  don t prepare in isolation! Attend the review session Friday 10/12, 49pm, The Woz, 430/434 Soda Look over HW, Labs, Projects, class notes Review the material you are bringing (textbook, C book) Extra TA ofce hours, TBA. Go over old exams linked to website. Others available through HKN website. CS61C L16 Floating Point Representation II (6) Wawrzynek, Fall 2007 UCB Cheating Reminder What is cheating? (From the online Class Information) Theft or possession of another student's solution or partial solution in any form (electronic, handwritten, or printed). Giving a solution or partial solution to another student, even with the explicit understanding that it will not be copied. Working together to develop a single solution and then turning in copies (or modied versions) of that solution under multiple names. Cheating on homeworks; 4 points for that assignment Cheating on projects / exams; At least, 0 points for that project / exam. In most cases, F in the course. For serious and repeated instances will refer you to Ofce of Student Judicial Affairs. CS61C L16 Floating Point Representation II (7) Wawrzynek, Fall 2007 UCB More about Cheating Use of &quot;programmer for hire websites as well as old solutions from past semesters are both considered cheating....
View
Full
Document
This note was uploaded on 04/09/2008 for the course CS 61A taught by Professor Harvey during the Spring '08 term at Berkeley.
 Spring '08
 Harvey

Click to edit the document details