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 23:37:20 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-21619-523-54gZPjn9oV@http.www.w3.org/Bugs/Public/>

--- Comment #2 from Cezar Andrei <cezar.andrei@gmail.com> ---
It's odd that decimal doesn't support -0 while float and double does. The
XMLSchema 1.1 it not very clear, defines the value space of decimal by using
the value space of integer, while the value space of integer says only: "The
·value space· of integer is the infinite set {...,-2,-1,0,1,2,...}." 

If this means that there is no -0 as a decimal, which means that the test case
prod-OrderByClause/orderBy20 and orderBy21 have the wrong result. 

The tests cases parses -0 (from orderData.xml) as a decimal (according to
orderData.xsd) and returns it, just like prod-FLWORExpr/ForExprType010 and
prod-OrderByClause/orderBy26. But the result is expected as -0.

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 8 April 2013 23:37:21 UTC

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