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

[Bug 2087] R-097: Problem with canonical rep'n of float/double

From: <bugzilla@wiggum.w3.org>
Date: Fri, 09 Sep 2005 03:27:50 +0000
To: www-xml-schema-comments@w3.org
Cc:
Message-Id: <E1EDZYM-0005Af-Su@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2087

           Summary: R-097: Problem with canonical rep'n of float/double
           Product: XML Schema
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSD Part 2: Datatypes
        AssignedTo: cmsmcq@w3.org
        ReportedBy: sandygao@ca.ibm.com
         QAContact: www-xml-schema-comments@w3.org


The existing text for the canonical representation for float/double reads:

Specifically, the exponent must be indicated by "E". Leading zeroes and the 
preceding optional "+" sign are prohibited in the exponent. For the mantissa, 
the preceding optional "+" sign is prohibited and the decimal point is 
required. For the exponent, the preceding optional "+" sign is prohibited. 
Leading and trailing zeroes are prohibited subject to the following: number 
representations must be normalized such that there is a single digit to the 
left of the decimal point and at least a single digit to the right of the 
decimal point. 
The problem is that the single digit to the left of the decimal point is 
allowed to be zero. This allows 1.0E1, 0.1E02 and 0.01E3 etc. as legal 
canonical representations for the same number.

See the following for a suggested resolution: 
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2001OctDec/0214.html
Received on Friday, 9 September 2005 03:27:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:09 GMT