home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!psinntp!kepler1!andrew
- From: andrew@rentec.com (Andrew Mullhaupt)
- Newsgroups: sci.math
- Subject: Re: Rounding Rules
- Message-ID: <1447@kepler1.rentec.com>
- Date: 5 Jan 93 04:55:12 GMT
- References: <1992Dec20.003018.14325@sol.ctr.columbia.edu> <1992Dec23.140148.21009@hubcap.clemson.edu> <1993Jan4.142226.9639@iscsvax.uni.edu>
- Organization: Renaissance Technologies Corp., Setauket, NY.
- Lines: 19
-
- In article <1993Jan4.142226.9639@iscsvax.uni.edu> kraai4712@iscsvax.uni.edu writes:
- >My personal favorite rounding rule is to round anything that has {0,1,2,3,4} in
- >the "rounding place" "down" and anything that has {5,6,7,8,9} "up". So as in
- >the previous example, 1.13500 would be rounded to 1.14 and 1.14500 would be
- >rounded to 1.15.
-
- >To this my teachers always gasped that this method was biased, and no amount of
- >pursuasion using the above-mentioned sets could pursuade them.
-
- Nor should it. As in all cases like this, Knuth's _Art of Computer Programming_
- is definitive.
-
-
- It is somewhat more work to round to nearest even, but it is often preferred.
- Given that most computers can do floating point arithmetic in one cycle, the
- work of rounding is not onerous.
-
- Later,
- Andrew Mullhaupt
-