From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kehl Hubertus To: "'cygwin@sourceware.cygnus.com'" Subject: Cygwin FCVT Bug Date: Tue, 06 Apr 1999 02:27:00 -0000 Message-id: <197A67E1DB8DD211A4670008C728B7040B64CA@mchh220e.demchh201e.oen.siemens.de> X-SW-Source: 1999-04/msg00049.html Hi, I encountered the following fcvt Bug in the C-Library of Cygwin. With Borland C or gcc under Linux this function works alright. The following sample demonstrates the bug, the number 1130.0 should be converted to zero digits after the decimal point, 1130 should be returned. Cygwin returns 113 :( Bye Hubertus #include #include int main(void) { double val=1130.0; int ndig=0; int dec; int sign; printf("%f#the following string should be 1130:#%s#\n",val, fcvt(val,ndig,&dec, &sign)); printf("#dec %d#sgin %d\n",dec,sign); } -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kehl Hubertus To: "'cygwin@sourceware.cygnus.com'" Subject: Cygwin FCVT Bug Date: Fri, 30 Apr 1999 18:32:00 -0000 Message-ID: <197A67E1DB8DD211A4670008C728B7040B64CA@mchh220e.demchh201e.oen.siemens.de> X-SW-Source: 1999-04n/msg00049.html Message-ID: <19990430183200.xF4y9fp6WU6d541gHQA0wRMYH177I5mVXpYCkFYRbMo@z> Hi, I encountered the following fcvt Bug in the C-Library of Cygwin. With Borland C or gcc under Linux this function works alright. The following sample demonstrates the bug, the number 1130.0 should be converted to zero digits after the decimal point, 1130 should be returned. Cygwin returns 113 :( Bye Hubertus #include #include int main(void) { double val=1130.0; int ndig=0; int dec; int sign; printf("%f#the following string should be 1130:#%s#\n",val, fcvt(val,ndig,&dec, &sign)); printf("#dec %d#sgin %d\n",dec,sign); } -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com