[rfc] rint() rounds to even
Ulrich Drepper
drepper@redhat.com
Mon Jan 29 08:59:00 GMT 2001
Ben Collins <bcollins@debian.org> writes:
> Now my math may be a little rusty and old, but I always assumed that
> "n.5" always rounded to "n+1".
This is highschool math. You don't care there about optimizations for
limited precision systems. The round to even rule is produce results
which are arithmetically more stable. The implementation is correct.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-alpha
mailing list