[Bug 1277] clarification about semantics of +0.0 and -0.0 in http://www.w3.org/TR/xquery-operators/


------- Additional Comments From mike@saxonica.com  2005-05-10 15:32 -------
Just one extra observation: for sorting, -0 and +0 compare equal, and like all
other equal sort keys, this can be resolved by adding a second sort key. So
(using XSLT notation), 

<xsl:sort select="$n"/>
<xsl:sort select="1 div $n"/>

will cause -0 to be sorted before +0.

Michael Kay

Received on Tuesday, 10 May 2005 15:32:42 UTC