Fixed-point is an alternative form for expressing numerical values. Fixed-point math is integer math, but because it allows fractions, it is much more versatile and often can substitute for slower and more cumbersome floating-point operations. The idea of fixed-point math is to trick the computer into thinking you are talking about an integer when in fact you. the programmer, know that you are dealing with a number that has a fractional component.
Figure 9.1.a shows a 16-bit integer. The computer thinks only in bits. In integer arithmetic, the bit positions are said to represent 2 to progressively higher powers starting from the right. The bit string 0000000000010000. therefore, represents tiie number 16.
Was this article helpful?