< previous page page_15 next page >

Page 15
Table 1.3 Comparison of floating-point specifications.
IBM S/390
VAX
IEEE Standard
S = Short
S = Short
S = Short
L = Long
L = Long
L = Long
Word length
S: 32 bits
S: 32 bits
S: 32 bits
L: 64 bits
L: 64 bits
L: 64 bits
Exponent
7 bits
8 bits
S: 8 bits
L: 11 bits
Significand
S: 6 digits
S: (1)+23 bits
S: (1)+23 bits
L: 14 digits
L: (1)+55 bits
L: (1)+52 bits
Bias of exponent
64
128
S=127, L=1023
Radix
16
2
2
Hidden "1"
No
Yes
Yes
Radix point
Left of Fraction
Left of hidden "1"
Right of MSB**of frac.
Range of Fraction
(1/16) < F < 1
0.5 < F < 1
1 < F < 2
F representation
Signed magnitude
Signed magnitude
Signed magnitude
Approximate max. positive number
1663tilde.gif 1076
2126* tilde.gif 1038
21024tilde.gif 10308 (L)
Precision
S: 16-6tilde.gif 10-7
S: 2-24tilde.gif 10-7
S : 2-23tilde.gif 10-7
L: 16-14tilde.gif 10-17
L: 2-56tilde.gif 10-17
L: 2-52tilde.gif 10-16
*Approximate maximum positive number, excluding reserved exponent representations.
**MSBmost significant bit.

2. Reals (both fixed- and floating-point representations).
d87111c01013bcda00bb8640fdff6754.gif
Fixed point consists of both integer and fractional portions of fixed sizes that are manipulated much as integers (they are often called scaled integers), and yet represent non-integral values. The advantage of fixed-point numbers is that they provide real values with no overhead other than conversion over their limited range (determined by the fixed field sizes). One benefit of this representation is that the numbers may be treated in the software as if they were integers. Floating-point numbers are represented by a fractional value with an exponent multiplier. These numbers require significant conversion as well as care during some operations to ensure that numbers are "compatible" both before and after the operation (called normalization). The main advantage of floating-point numbers is the large range of numbers availablethe IEEE double precision format can represent numbers from 2.2 ´ 10-308 up to 1.8 ´ 10308. For comparison, a 64b fixed-point number would have a maximum representation of about 1020.
d87111c01013bcda00bb8640fdff6754.gif
Floating-point numbers have a number of different representations; the most common systems include those used in System 390, VAX, and the IEEE floating point standard [144]. Most floating-point numbers fit in either a word (32 bits, or short floating representation), or a 64-bit double word operand. Floating-point numbers contain a sign specification, a representation of the fraction (mantissa or significand), and the exponent representationeither exponent plus sign or a characteristic in an excess code representation. A number of other aspects of a floating-point number are implied, i.e., understood

 
< previous page page_15 next page >