
Listings
2.1 Inexact representation of floating-point inputs . . . . . . . . . 13
2.2 Simple implementation for computing distance between two
points ............................... 18
2.3 Incorrect distance computation due to input problems . . . . 18
2.4 Conversion of rational numbers to binary scientific numbers . 26
2.5 A union is used to allow accessing a floating-point number or
manipulating its bits via an unsigned integer . . . . . . . . . 32
2.6 Decoding an 8-bit floating-point number . . . . . . . . . . . . 33
2.7 Decoding a 16-bit floating-point number . . . . . . . . . . . . 37
2.8 Decoding a 32-bit floating-point number . . . . . . . . . . . . ...