Date: Wed, 21 Oct 1998 19:10:31 -0400 From: "Christopher R. Bowman" <crb@ChrisBowman.com> To: EddieB <eddieb@shell1.dragondata.com> Cc: Mike Smith <mike@smith.net.au>, freebsd-chat@FreeBSD.ORG Subject: Re: Bug in rintf()?... Message-ID: <199810220017.TAA06846@quark.ChrisBowman.com> In-Reply-To: <Pine.BSF.4.05.9810211249470.2284-100000@shell1.dragondata. com> References: <199810211749.KAA00881@dingo.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
At 12:52 PM 10/21/98 -0500, EddieB wrote: > >> >> > rintf(3.5) returns 4.0 >> > rintf(3910.5) returns 3910.0 (should return 3911.0) >> > >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 crb@ChrisBowman.com http://www.ChrisBowman.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810220017.TAA06846>