X-Spam-Check-By: sourceware.org Message-ID: <19c433eb0708240916t48556c38k563ada260702e1fd@mail.gmail.com> Date: Fri, 24 Aug 2007 17:16:23 +0100 From: "=?ISO-8859-1?Q?Fran=E7ois-Xavier_Coudert?=" To: cygwin AT cygwin DOT com Subject: Problem with lroundf() MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi all, I think the following exhibits a bug in the lroundf() routine: $ cat a.c #include #include int main (void) { printf ("%d\n", (int) lroundf(0.7)); } $ gcc a.c && ./a.exe 0 The result of lroundf(0.7) should be 1, not 0. If lround() is used instead of lroundf(), then it's working OK. I didn't file a PR in bugzilla because the bug report instructions say to send a mail to this list, but I can open one if need be. Thanks, FX PS: the list of packages probably relevant is following. Please ask if you need any more information. Package Version base-files 3.7-1 cygrunsrv 1.17-1 cygutils 1.3.1-1 cygwin 1.5.24-2 gcc 3.4.4-3 gcc-core 3.4.4-3 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/