[xsl] [Q] Sum Function

Subject: [xsl] [Q] Sum Function
From: Jonathan Calvert <jonathan_calvert@xxxxxxxxx>
Date: Thu, 1 Nov 2001 06:02:38 -0800 (PST)

I have a serious problem with the XPath Sum function. 
Am I using it incorrectly?  Should I use an
alternative method for my sum calculation.  Thanks in
advance for the help!


Total should be 16.37


<xsl:value-of select="sum($BatchPayments/Amount)"/>

calculates the value as 16.369999999999997

I do not think it matters, but this is on a Sun box
using Xalan and Xerces.


Do You Yahoo!?
Make a great connection at Yahoo! Personals.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread