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

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

From: <bugzilla@wiggum.w3.org>
Date: Tue, 10 May 2005 15:32:09 +0000
To: public-qt-comments@w3.org
Cc:
Message-Id: <E1DVWiP-0006s2-BR@wiggum.w3.org>

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





------- 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

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