home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: sci.math
- Path: sparky!uunet!gatech!hubcap!steve
- From: steve@hubcap.clemson.edu ("Steve" Stevenson)
- Subject: Re: Rounding Rules
- Message-ID: <1992Dec23.140148.21009@hubcap.clemson.edu>
- Organization: Clemson University
- References: <1992Dec20.003018.14325@sol.ctr.columbia.edu>
- Date: Wed, 23 Dec 1992 14:01:48 GMT
- Lines: 33
-
- In article <1992Dec20.003018.14325@sol.ctr.columbia.edu> shaw@toadflax.UCDavis.EDU (Rob Shaw) writes:
- >
- >What is the rationale behind the following rounding rule?
- >
- >when dealing with 5's followed by all zero's, check the
- >next digit to the left. If it's even, round down; odd,
- >round up.
- >
- >For example both 1.13500 and 1.14500 are 1.14 to 3 places.
- >What is the advantage of having the interval closed at both
- >ends around even digits, and open at both ends around odds?
- >
-
- The problem with many of the "rounding rules" is that they are biased.
- In the IEEE round of rules, an attempt is made to make rounding as unbiased
- as possible. Round to even is specified as the rule of choice, since it
- avoids many of the problems of "round to infinity" or "round towards zero".
-
- See any good (and recent) text on architecture or see
-
- @article{ goldberg,
- author={David Goldberg},
- title={What every computer scientist should know about floating-point
- arithmetic},
- journal={Computing Surveys},volume=23,number=1,year=1991,
- pages={5--48}
- }
-
- --
- ===============================================================================
- Steve (really "D. E.") Stevenson steve@hubcap.clemson.edu
- Department of Computer Science, (803)656-5880.mabell
- Clemson University, Clemson, SC 29634-1906
-