W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2005

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

From: <bugzilla@wiggum.w3.org>
Date: Fri, 13 May 2005 20:20:51 +0000
To: public-qt-comments@w3.org
Cc:
Message-Id: <E1DWgeR-0003qg-Md@wiggum.w3.org>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:05 UTC