L11-ac-fp1-6up

# L11-ac-fp1-6up - inst.eecs.berkeley.edu/~cs61c CS61C...

This preview shows pages 1–3. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
CS61C L11 Floating Point I (7) Chae, Summer 2008 © UCB Representation of Fractions (2/2) “Binary Point” like decimal point signifies boundary between integer and fractional parts: xx . yyyy 2 1 2 0 2 -1 2 -2 2 -3 2 -4 Example 6-bit representation: 10.1010 2 = 1x2 1 + 1x2 -1 + 1x2 -3 = 2.625 10 If we assume “fixed binary point”, range of 6-bit representations with this format: 0 to 3.9375 (almost 4) CS61C L11 Floating Point I (8) Chae, Summer 2008 © UCB Fractional Powers of 2 0 1.0 1 1 0.5 1/2 2 0.25 1/4 3 0.125 1/8 4 0.0625 1/16 5 0.03125 1/32 6 0.015625 7 0.0078125 8 0.00390625 9 0.001953125 10 0.0009765625 11 0.00048828125 12 0.000244140625 13 0.0001220703125 14 0.00006103515625 15 0.000030517578125 i 2 -i CS61C L11 Floating Point I (9) Chae, Summer 2008 © UCB Representation of Fractions with Fixed Pt. What about addition and multiplication?
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 12/06/2009 for the course CS cs61c taught by Professor Cory during the Summer '08 term at Berkeley College.

### Page1 / 6

L11-ac-fp1-6up - inst.eecs.berkeley.edu/~cs61c CS61C...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online