Re: Canonical representation of float/double and number of digits

At 4:28 PM +0100 2009-02-02, Vincent Lefevre wrote:
>[Note: I'm not subscribed to the list, please Cc <vincent@vinc17.org>]
>
>In <http://www.w3.org/TR/xmlschema-2/> (XML Schema Part 2: Datatypes
>Second Edition, 28 October 2004), the canonical representation for
>the primitive datatypes "float" and "double" does not have special
>requirements concerning the number of digits (except for leading and
>trailing zeroes). For instance, for float:

Version 1.1 of Schema is under development and is nearing completion.
The latest public draft of Part 2 can be found at:
    http://www.w3.org/TR/xmlschema11-2/
Canonical representations are not needed for Schema 1.1 purposes, and
in particular for float and double the new spec specifically (and only)
points back to IEEE 754.  The paragraph you quote from the Schema 1.0
spec is gone in 1.1.

Let us hope Schema 1.1 makes it to full Recommendation status quickly.
-- 
Dave Peterson
SGMLWorks!

davep@iit.edu

Received on Monday, 2 February 2009 15:51:08 UTC