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

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 UTC