This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1411 - Constructing positive and negative zero -- Schema 1.1
Summary: Constructing positive and negative zero -- Schema 1.1
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 1.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ashok Malhotra
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
Depends on:
Reported: 2005-05-13 20:20 UTC by Ashok Malhotra
Modified: 2005-09-29 11:05 UTC (History)
0 users

See Also:


Description Ashok Malhotra 2005-05-13 20:20:51 UTC
>xs:float ($arg  as  xdt:anyAtomicType? ) as  xs:float?
>Implementations ·may· return negative zero for xs:float("-0.0E0").
>xs:double ($arg  as  xdt:anyAtomicType? ) as  xs:double?
>Implementations ·may· return negative zero for xs:double("-0.0E0").

In Schema 1.1, float and double distinguish between 0 and -0; we would
*expect* implementations to return negative zero for xs:float('-0.0E0')
and xs:double('-0.0E0').  [I suspect this applies elsewhere as well;
I'm not going to search down every instance of "allowing" negative

Dave Peterson for the XML Schema WG
Comment 1 Ashok Malhotra 2005-05-19 15:07:41 UTC
This was discussed at the joint QT WGs meeting on 5/18/2005 and it was decided
to add explanatory notes where needed saying that this was due to the fact that
XML Schema 1.0 does not distinguish the values positive and negative zero.

Ashok Malhotra