W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2005

RE: Representation of floating point values.

From: Daniel Engovatov <dengovatov@bea.com>
Date: Tue, 8 Mar 2005 12:56:12 -0800
Message-ID: <32D5845A745BFB429CBDBADA57CD41AF09FF7B3E@ussjex01.amer.bea.com>
To: "Dave Peterson" <davep@iit.edu>, "Ashok Malhotra" <ashok.malhotra@oracle.com>, "Michael Kay" <mhk@mhk.me.uk>, <www-xml-schema-comments@w3.org>

It seems to me (I am not speaking on the behalf of the XQuery WG) that
only allowing mapping it to Infinity may be not sufficient.

There is an explicit way to construct IEEE754's Infinity.   It is not
the same as having a too large number - and many applications using
schema data types may want to know that this has happened.

For this reason, numerical operations in XQuery allow for all three
options - mapping to a largest value, to Infinity and raising an error.
Same for underflow.

>From my personal experience in dealing with a variety of scientific data
formats not having an option to detect a non-representable value is not
particularly user-friendly.

Is there a way to phrase the Schema in a way as to allow the "hosting"
application to choose how to deal with overflow/underflow?

Daniel;


-----Original Message-----
From: Dave Peterson [mailto:davep@iit.edu] 
Sent: Monday, March 07, 2005 4:56 PM
To: Ashok Malhotra; Michael Kay; Daniel Engovatov;
www-xml-schema-comments@w3.org
Cc: w3c-xml-query-wg@w3.org
Subject: RE: Representation of floating point values.

I always thought that Schema 1.0 would produce an infinity, but you've
convinced me we didn't write it that way.  Probably by accident.  I
suspect that if Query has druthers, Schema would consider fixing it,
at least in 1.1.
-- 
Dave Peterson
SGMLWorks!

davep@iit.edu
Received on Tuesday, 8 March 2005 20:56:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 October 2007 06:13:36 GMT