Chapter 4 Numbers in Floating-point Format

DOI: 10.1201/9781003363286-4

The number A is written in (n + m) digits with base p, where n is the number of digits of the mantissa M, m is the number of digits of the characteristic (exponent) E (Figure 4.1).

An image shows a floating-point format of number which displays A equals a tape diagram with 10 boxes. The boxes includes: a0, a-1, …, a-(n-2), a-(n-1), blank box, am-1, am-2, …, a0. The tape diagram equals Mp times PEp.

Figure 4.1 A floating-point format of number.

Please note the different format of the above bit field compared to the fixed-point format. The term ‘floating-point’ emphasizes the possibility of expressing the same value of a number using different combinations of mantissa and exponent, as shown in Example 4.1. In the following section, we will assume p = 2, considering only binary systems.

Get Computer Arithmetic in Practice now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.