- From: <bugzilla@wiggum.w3.org>
- Date: Fri, 09 Sep 2005 03:27:50 +0000
- To: www-xml-schema-comments@w3.org
- Cc:
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 UTC