From owner-freebsd-chat Wed Oct 21 16:25:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA27135 for freebsd-chat-outgoing; Wed, 21 Oct 1998 16:25:50 -0700 (PDT) (envelope-from owner-freebsd-chat@FreeBSD.ORG) Received: from shell1.dragondata.com (shell1.dragondata.com [204.137.237.8]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA27127 for ; Wed, 21 Oct 1998 16:25:48 -0700 (PDT) (envelope-from eddieb@shell1.dragondata.com) Received: from localhost (eddieb@localhost) by shell1.dragondata.com (8.8.8/8.8.8) with ESMTP id SAA24200; Wed, 21 Oct 1998 18:25:35 -0500 (CDT) (envelope-from eddieb@shell1.dragondata.com) Date: Wed, 21 Oct 1998 18:25:35 -0500 (CDT) From: EddieB To: "Christopher R. Bowman" cc: freebsd-chat@FreeBSD.ORG Subject: Re: Bug in rintf()?... In-Reply-To: <199810220017.TAA06846@quark.ChrisBowman.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > >I haven't really the slightest clue about coding (Yea I'll admit it) but I > >do remember from physics / chemistry classes that .5 #'s are rounded > >different. IE: 3.5 rounds to 4.0 and 4.5 also rounds to 4.0. If the # > >preceeding the .5 is even it just drops the .5, if the # preceeding the .5 > >is odd, it rounds up (you always get an even # as an answer) > > > >Probably not what is happening with that but I was bored and decided to > >write an email :) > > > >Jon > > > >EddieB/IRC > >IRCop : irc.dragondata.com > > NewNet HUB Server > > Never in all my life heard this, and I got 10 years of engineering education > with more physics than I can shake a stick at, behind me. > > What logical reason is there for this? > -------- > Christopher R. Bowman I was told it was so it was "fair" (for lack of a better term). In grade school they taught us that anything .5 or greater was rounded up but in physics (and chem) they told us to look to the preceeding digit and use that as a guide; if the digit is odd - round up, if the digit is even - leave it be. Maybe my education has been a lie thus far :) Jon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message