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

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





------- 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