From: buers AT gmx DOT de (Dieter Buerssner) Newsgroups: comp.os.msdos.djgpp Subject: Re: Rounding doubles to ints Date: 2 Jun 2000 10:27:00 GMT Lines: 8 Message-ID: <8h89js.3vs4im1.0@buerssner-17104.user.cis.dfn.de> References: <39363d0a$0$8416$7f31c96c AT news01 DOT syd DOT optusnet DOT com DOT au> <8h67e5 DOT 3vs4im1 DOT 0 AT buerssner-17104 DOT user DOT cis DOT dfn DOT de> <200006011957 DOT WAA01748 AT alpha DOT netvision DOT net DOT il> NNTP-Posting-Host: pec-115-208.tnt7.s2.uunet.de (149.225.115.208) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 959941620 2699923 149.225.115.208 (16 [17104]) X-Posting-Agent: Hamster/1.3.13.0 User-Agent: Xnews/03.02.04 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: >IIRC, the version of `rint' in libm.a rounds correctly in a way that >doesn't depend on the rounding mode (and without fiddling it). rint() depends on the rounding mode, as it should. The source code (that is difficult to understand), seems to do the equivalent of the three-liner I posted.