This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SV: Bug in printf ?


Dave Korn wrote:

>   Absolutely, there's a rounding error of some sort.  Compare the difference
> when compiling the testcase with -mno-cygwin (i.e. using mingw maths lib):

Isn't this just a case of the Cygwin math library choosing "round to
even" and the MSVCRT/mingw library choosing "0.5 always rounds up"?  The
Goldberg paper covers this, and in fact it claims the IEEE standard
requires round to even for all results of addition, subtraction,
multiplication, and division.  Sooo, doesn't look like a bug at all to
me.

Brian

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]