14_pdfsam_2 - Fixed-Point Numbers All computer instructions...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Fixed-Point Numbers All computer instructions and data are represented and stored in binary (base 2) form. In the representation of fxed-point numbers, the value of each digit in the number depends on its position relative to the Fxed decimal point. ±or example the integer value 53 in base 10 is represented by the binary or base 2 value 00110101, denoted by 53 10 = 00110101 2 In base 10, this means 53 10 =5 × 10 1 +3 × 10 0 Similarly, 00110101 2 =0 × 2 7 +0 × 2 6 +1 × 2 5 +1 × 2 4 +0 × 2 3 +1 × 2 2 +0 × 2 1 +1 × 2 0 =3 2 10 +16 10 +4 10 +1 10 Thus, each bit position represents an increasing power of 2, beginning with 2 0 on the right. Floating-Point Numbers To represent non-integer numbers, a number representation known as floating-point must be deFned. ±loating-point numbers are used on computers to approximate a subset of the real numbers. While there are many possible floating-point number systems, all such systems consist of zero, a set of positive numbers, and the corresponding set of negative numbers.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/07/2010 for the course ENG 101 taught by Professor Chang during the Summer '09 term at 東京国際大学.

Ask a homework question - tutors are online