WHAT EVERY COMPUTER SCIENTIST SHOULD KNOW ABOUT FLOATING-POINT ARITHMETIC

被引:702
作者
GOLDBERG, D
机构
[1] Xerox Palo Alto Research Center, Palo Alto, CalLfornLa 94304
关键词
DENORMALIZED NUMBER; EXCEPTION; FLOATING-POINT; FLOATING-POINT STANDARD; GRADUAL UNDERFLOW; GUARD DIGIT; NAN; OVERFLOW; RELATIVE ERROR; ROUNDING ERROR; ROUNDING MODE; ULP; UNDERFLOW;
D O I
10.1145/103162.103163
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Floating-point arithmetic is considered an esotoric subject by many people. This is rather surprising, because floating-point is ubiquitous in computer systems: Almost every language has a floating-point datatype; computers from PCs to supercomputers have floating-point accelerators; most compilers will be called upon to compile floating-point algorithms from time to time; and virtually every operating system must respond to floating-point exceptions such as overflow. This paper presents a tutorial on the aspects of floating-point that have a direct impact on designers of computer systems. It begins with background on floating-point representation and rounding error, continues with a discussion of the IEEE floating-point standard, and concludes with examples of how computer system builders can better support floating point.
引用
收藏
页码:5 / 48
页数:44
相关论文
共 32 条
[1]  
Aho A.V, 1986, COMPILERS PRINCIPLES
[2]  
BARNETT D, 1987, UNPUB PORTABLE FLOAT
[3]   A SIMPLE BUT REALISTIC MODEL OF FLOATING-POINT COMPUTATION [J].
BROWN, WS .
ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE, 1981, 7 (04) :445-480
[4]  
Cardelli L, 1989, 52 DIG SYST RES CTR
[5]   A PROPOSED RADIX-INDEPENDENT AND WORD-LENGTH-INDEPENDENT STANDARD FOR FLOATING-POINT ARITHMETIC [J].
CODY, WJ ;
COONEN, JT ;
GAY, DM ;
HANSON, K ;
HOUGH, D ;
KAHAN, W ;
KARPINSKI, R ;
PALMER, J ;
RIS, FN ;
STEVENSON, D .
IEEE MICRO, 1984, 4 (04) :86-100
[6]  
Cody WJ, 1988, RELIABILITY COMPUTIN, P99
[7]   FLOATING-POINT TECHNIQUE FOR EXTENDING AVAILABLE PRECISION [J].
DEKKER, TJ .
NUMERISCHE MATHEMATIK, 1971, 18 (03) :224-+
[8]   UNDERFLOW AND THE RELIABILITY OF NUMERICAL SOFTWARE [J].
DEMMEL, J .
SIAM JOURNAL ON SCIENTIFIC AND STATISTICAL COMPUTING, 1984, 5 (04) :887-919
[9]   COMPILER SUPPORT FOR FLOATING-POINT COMPUTATION [J].
FARNUM, C .
SOFTWARE-PRACTICE & EXPERIENCE, 1988, 18 (07) :701-709
[10]  
Forsythe G., 1967