W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2013

[Bug 21619] wrong results when handeling -0 negativeZero

From: <bugzilla@jessica.w3.org>
Date: Mon, 08 Apr 2013 13:52:01 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-21619-523-ohg1hepQU7@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=21619

Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mike@saxonica.com

--- Comment #1 from Michael Kay <mike@saxonica.com> ---
Concerning ForExprType010, the values are decimal rather than double/float, and
the type xs:decimal does not have a negative zero in its value space.

Concerning orderBy29, the last result in the sequence is formed by converting
"-0" to decimal (giving zero) and then multiplying by the double value -1e0.
First the decimal zero is converted to the double (positive) zero, then this is
multiplied by double minus one. The IEEE rules are that +0e0 times -1e0 gives
negative zero.

So I believe both tests are correct.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 8 April 2013 13:52:07 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:52 UTC