



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




CS365 1
CS 365 Lecture 8 Prof. Yih Huang
CS365 2
6.02 x 10 23
exponent
Mantissa radix (base)
decimal point
Sign, magnitude
Sign, magnitude
CS365 3
We need a way to represent
CS365 4
Arithmetic (+, -, ×, /) Representation, Normal form Range and Precision Rounding Exceptions (e.g., divide by zero, overflow, underflow) Errors
CS365 7
Magnitude of numbers that can be represented: 2-126^ to 2^127 (2− 2 -23) Or in decimal numbers: 1.8×10-38^ to 3.4×10^38
CS365 8
Give the single precision representation of 1.0.
Give the single precision representation of -0.
Give the single precision representation of 0.
CS365 9
Calculate the value of
0 1 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
CS365 10
Step 1: alignment of decimal point
Step 2: add significands
Step 3: normalization