[Bug 1411] New: Constructing positive and negative zero -- Schema 1.1

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

           Summary: Constructing positive and negative zero -- Schema 1.1
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: PC
               URL: http://lists.w3.org/Archives/Member/w3c-xml-schema-
                    ig/2005Apr/0054.html
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators
        AssignedTo: ashok.malhotra@oracle.com
        ReportedBy: ashok.malhotra@oracle.com
         QAContact: public-qt-comments@w3.org


>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

Received on Friday, 13 May 2005 20:20:54 UTC