Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Mar 1999 16:08:36 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs@FreeBSD.ORG, imdave@mcs.net
Subject:   Re: bin/10863: rint(3) returns erratic results
Message-ID:  <199903300608.QAA19501@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
> > rint(3) appears to return inconsistent results for some inputs.  For
> > example, it rounds both 5.5 and 6.5 to 6.  If rint always rounds up,
> > it should round these numbers to 6 and 7; if it always rounds down, it
> > should round these numbers to 5 and 6; if it always rounds to the
> > nearest integer, it should round to 6 and 7.  Is there any situation
> > where it would be correct to round both 5.5 and 6.5 to 6?

The default situation (round to even).

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903300608.QAA19501>