W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2004

[F&O] 6.3 NaN difference between XQuery and XMLSchema

From: Sarah Wilkin <swilkin@apple.com>
Date: Thu, 16 Dec 2004 10:06:37 -0800
Message-Id: <3AB14A8E-4F8D-11D9-B937-000A278462D6@apple.com>
To: public-qt-comments@w3.org

In section 6.3:
"NaN does not equal itself "

But in the XMLSchema 3.2.5: http://www.w3.org/TR/xmlschema-2/#double
"NaN equals itself but is ˇincomparableˇ with (neither greater than nor 
less than) any other value in the ˇvalue spaceˇ. "

I believe this discrepancy exists because most floating point 
operations in XQuery use the IEEE 754 standard. If this is the case, a 
note similar to others referencing IEEE 754 should be added. 
Alternatively, a consolidated section describing when to use IEEE 754 
for operations/comparisons on xs:float and xs:double could be added to 
6.1.

--Sarah
Received on Thursday, 16 December 2004 18:07:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:37 GMT