W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2004

RE: float and double ordered facet value, error in 2E PER

From: Ashok Malhotra <ashokma@microsoft.com>
Date: Mon, 3 May 2004 09:30:04 -0700
Message-ID: <EDB607C8AC991F40BE646533A1A673E801FB018B@RED-MSG-42.redmond.corp.microsoft.com>
To: "Dave Peterson" <davep@iit.edu>, <www-xml-schema-comments@w3.org>

Should we also change Schema so that NaN not equal to NaN?

All the best, Ashok

-----Original Message-----
From: Dave Peterson [mailto:davep@iit.edu] 
Sent: Monday, May 03, 2004 9:12 AM
To: Ashok Malhotra; www-xml-schema-comments@w3.org
Subject: RE: float and double ordered facet value, error in 2E PER

At 8:52 AM -0700 040503, Ashok Malhotra wrote:
>Dave:
>
>Here's how I see this issue:
>
>- IEEE-754 says NaN is unordered WRT all other numbers including
itself.
>
>- XML Schema says NaN = NaN
>
>- F&O says that the result of comparing NaN with any other value is 
>'false'. This is an attempt to mimic the IEEE-754 semantic without 
>going into partial order.  I recommend Schema do the same.

If comparing NaN with any other value is false, and there are other
values,
then the order is necessarily partial (and may be trivial, but is not in
this case).

That's why Schema should make this facet value partial for float and
double.
-- 
Dave Peterson
SGMLWorks!

davep@iit.edu
Received on Monday, 3 May 2004 12:30:07 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:34 UTC