This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
>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 zero. Dave Peterson for the XML Schema WG
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