July 2002
Intermediate to advanced
320 pages
8h 15m
English
When IBM introduced the System/360 computer in 1964, numerical analysts were horrified at the loss of precision of single-precision arithmetic. The previous IBM computer line, the 704 - 709 - 7090 family, had a 36-bit word. For single-precision floating-point, the format consisted of a 9-bit sign and exponent field, followed by a 27-bit fraction in binary. The most significant fraction bit was explicitly included (in “normal” numbers), so quantities were represented with a precision of 27 bits.
| -0.0 = +0.0 (IEEE) | -0.0 < +0.0 (non-IEEE) |
|---|---|
| if (n >= 0) n = n+0x80000000; else n = -n; Use unsigned comparison. | if (n >= 0) n = n+0x80000000; ... |
Read now
Unlock full access