<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>1917</bug_id>
          
          <creation_ts>2005-08-30 18:22:22 +0000</creation_ts>
          <short_desc>RQ-140:  distinguish negative from positive zero in float and double (Requirement)</short_desc>
          <delta_ts>2008-03-08 17:06:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema</product>
          <component>Datatypes: XSD Part 2</component>
          <version>1.1 only</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/xmlschema11-1/reqs.html#negative-positive-zero</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="C. M. Sperberg-McQueen">cmsmcq</reporter>
          <assigned_to name="XML Schema WG">w3c-xml-schema-wg</assigned_to>
          
          
          <qa_contact name="XML Schema comments list">www-xml-schema-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5589</commentid>
    <comment_count>0</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2005-08-30 18:22:22 +0000</bug_when>
    <thetext>The value space of float and double should be aligned with
IEEE and with the XML Query, XPath, and XSLT specifications
and should have two distinct signed zeroes.  

Historical background:  the first edition of XML Schema 1.0
had two distinct zeroes, but there was pushback over the
consequence that for purposes of checking minimum and
maximum values on bounded types +0 was greater than -0.
To respond to these concerns, the WG issued an erratum 
which made them a single value.  This in turn distressed some
observers who felt that alignment with IEEE and QT required
distinct signed zeroes.  Eventually, the WG concluded that the
correct approach is to have distinct values, but make 
bounds checking depend not solely on identity but instead
on numeric equality:  positive and negative zeroes are to
be distinct values which compare equal in bounds checking.
Since this is the behavior of conforming IEEE arithmetic
libraries, it should be unsurprising to most people, although
some observers have already deplored the distinction thus
made between identity and (numeric) equality.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5872</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2005-09-07 22:19:21 +0000</bug_when>
    <thetext>A wording proposal for this issue is included in the omnibus package of
31 August 2005.

http://www.w3.org/XML/Group/2004/06/xmlschema-2/datatypes.omnibus.20050831.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6950</commentid>
    <comment_count>2</comment_count>
    <who name="Henry S. Thompson">ht</who>
    <bug_when>2005-10-28 11:05:30 +0000</bug_when>
    <thetext>New proposal sent to WG per decisions taken at telcon of 2005-10-21: 
http://www.w3.org/XML/Group/2004/06/xmlschema-
2/datatypes.b1917.20051028.html#float</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7360</commentid>
    <comment_count>3</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2005-12-09 04:00:10 +0000</bug_when>
    <thetext>I&apos;m slighty uncertain of the current status of this item.
The wording included in the omnibus proposal of 31 August
was approved by the WG in Edinburgh, which would seem to have
closed the item.  I do not know why a revised proposal was
thought necessary (and wonder whether the proposal sent to the WG
in October was actually for a different issue related to
float and double).

In any case, the wording approved in Edinburgh was integrated
into the status quo document 8 Dec 2005.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7366</commentid>
    <comment_count>4</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2005-12-09 05:10:18 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt;                            I do not know why a revised proposal was
&gt; thought necessary (and wonder whether the proposal sent to the WG
&gt; in October was actually for a different issue related to
&gt; float and double).

Precisely; it was to close out the RQ-21 (lex reps and mappings, and
reformat to add a value space subsection) rewrite.

Which same was subsequently approved and is awaiting integration of
WG-directed amendments and then will be incorporated int SQ.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19304</commentid>
    <comment_count>5</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2008-03-05 16:06:11 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt;                            I do not know why a revised proposal was
&gt; &gt; thought necessary (and wonder whether the proposal sent to the WG
&gt; &gt; in October was actually for a different issue related to
&gt; &gt; float and double).
&gt; 
&gt; Precisely; it was to close out the RQ-21 (lex reps and mappings, and
&gt; reformat to add a value space subsection) rewrite.
&gt; 
&gt; Which same was subsequently approved and is awaiting integration of
&gt; WG-directed amendments and then will be incorporated int SQ.

No note indicating that the material described was in fact incorporated into the SQ document, but one editor (MSM) marked the material RESOLVED FIXED after that comment was posted, so I trust that they were so incorporated.  Michael, please check, and mark this bug CLOSED if they were in fact incorporated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19380</commentid>
    <comment_count>6</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2008-03-08 17:06:00 +0000</bug_when>
    <thetext>(In reply to comment #5)

&gt; No note indicating that the material described was in fact incorporated into
&gt; the SQ document, but one editor (MSM) marked the material RESOLVED FIXED after
&gt; that comment was posted, so I trust that they were so incorporated.  Michael,
&gt; please check, and mark this bug CLOSED if they were in fact incorporated.

Oops. &apos; Twas not this bug that was referred to as needing a rewrite, it was &quot;the
RQ-21 rewrite&quot; (which happens to be bug 1907), which has been put in the SQ
document and CLOSED.  Accordingly, I retract the request for checking, and am
herewith marking this bug CLOSED.  Mea culpa.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>