PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3384

*** shadow/3384 Mon Sep  3 06:11:27 2001
--- shadow/3384.tmp.15937       Mon Sep  3 06:11:27 2001
***************
*** 0 ****
--- 1,67 ----
+ +============================================================================+
+ | a div 1 not equal a ?!?                                                    |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3384                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.0                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Windows NT/2K           |
+ |     Priority: Other                     Component: org.apache.xalan.transf |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                     |
+ |  Reported By: [EMAIL PROTECTED]                                 |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Hi,
+ I'm using LotusXSL version 2.2.0 and I'm having the following problem:
+ If  I divide by one some numbers, I do not get the same number.
+ For example I get 
+ 0.011     div  1    =    0.011000000000000001 
+ while 
+ 0.012 div 1 =  0.012
+ Is somthing wrong with my code , or is it a bug?
+ I can provide a sample that reproduce this problem,  anyway this is an extract from 
+xslt code:
+ 
+ <xsl:template name="prova">
+       <xsl:param name="divisor"/>
+ 
+ <table border="1">
+ <tr>
+ <th>original value</th>
+ <th>divisor</th>
+ <th>after division  by <xsl:value-of select="$divisor"/></th>
+ </tr>
+ 
+ <xsl:for-each select="tapmdata/tid/interval">
+ <xsl:for-each select="value">
+ 
+ <tr>
+ <td>
+ <!-- **************************  -->
+ <!--  original value             -->
+ <!-- **************************  -->
+       <xsl:value-of select="."/>
+ </td>
+ 
+ <td>
+ <!-- **************************  -->
+ <!--  divisor                    -->
+ <!-- **************************  -->
+       <xsl:value-of select="$divisor"/>
+ </td>
+ 
+ <td>
+ <!-- **************************  -->
+ <!--  after division             -->
+ <!-- **************************  -->
+       <xsl:value-of select=". div $divisor"/>
+ </td>
+ 
+ </tr>
+ </xsl:for-each>
+ </xsl:for-each>
+ 
+ </table>
+ </xsl:template>

Reply via email to