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

[Bug 2227] R-235: Canonical rep'n of -0.0

From: <bugzilla@wiggum.w3.org>
Date: Tue, 01 Nov 2005 01:37:35 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1EWl5j-00041s-RC@wiggum.w3.org>


------- Additional Comments From davep@iit.edu  2005-11-01 01:37 -------
(In reply to comment #0)
> If I understand the specs correctly, the canonical form of the decimal -0.0 is -
> 0.0, but I would expect it to be 0.0. I scanned through the errata but couldn't 
> find anything that's related to this. Is this an error in the XML Schema 
> datatypes spec? 

The decimal value -0.0 *is* the decimal value 0.0.  One value can only have one
canonical form.  Zero (by whatever name) has the canonical form '0,0'.  We should
amend the 1.0 spec so as to exclude *opitional* minus as well as plus signs.  (Of
course, a minus sign is optional in only the case of zero.)

    Specifically, the preceding optional plus sign is prohibited; in the case of zero,
    the optional minus sign is also prohibited.
Received on Tuesday, 1 November 2005 01:37:40 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:04 UTC