You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dm...@apache.org on 2002/02/07 20:40:27 UTC
cvs commit: xml-xalan/test/tests/conf/math math110.xsl
dmarston 02/02/07 11:40:27
Modified: test/tests/conf/math math110.xsl
Log:
Make the numbers more "even" in the binary sense to
circumvent deep IEEE-754 details.
Revision Changes Path
1.2 +5 -5 xml-xalan/test/tests/conf/math/math110.xsl
Index: math110.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/math/math110.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- math110.xsl 16 Jan 2002 23:13:02 -0000 1.1
+++ math110.xsl 7 Feb 2002 19:40:27 -0000 1.2
@@ -16,21 +16,21 @@
<xsl:text>|</xsl:text>
<xsl:value-of select="number(7 div 4)"/>
<xsl:text>|</xsl:text>
- <xsl:value-of select="(1.75 = (7 div 4))"/>
+ <xsl:value-of select="(number(1.75) = (7 div 4))"/>
<xsl:text>| </xsl:text>
- <xsl:value-of select="number(0.0175 * 100)"/>
+ <xsl:value-of select="number(0.109375 * 16)"/>
<xsl:text>|</xsl:text>
- <xsl:value-of select="(1.75 = (0.0175 * 100))"/>
+ <xsl:value-of select="(number(1.75) = (0.109375 * 16))"/>
<xsl:text>| </xsl:text>
<xsl:value-of select="number(k)"/>
<xsl:text>|</xsl:text>
<xsl:value-of select="number(4 div 10000)"/>
<xsl:text>|</xsl:text>
- <xsl:value-of select="(k = (4 div 10000))"/>
+ <xsl:value-of select="(number(k) = (4 div 10000))"/>
<xsl:text>| </xsl:text>
<xsl:value-of select="number(0.0001 * 4)"/>
<xsl:text>|</xsl:text>
- <xsl:value-of select="(k = (0.0001 * 4))"/>
+ <xsl:value-of select="(number(k) = (0.0001 * 4))"/>
<xsl:text>| </xsl:text>
</out>
</xsl:template>
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org