[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] XPath 1.0: sum() and precision


Subject: Re: [xsl] XPath 1.0: sum() and precision
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 27 Sep 2012 23:51:03 +0100

On 27/09/2012 23:09, Florent Georges wrote:
round(sum(...) * 100) div 100


or perhaps

<xsl:value-of select="format-number(sum(num),'#.00')"/>

which also works here but probably has different behaviour in edge cases.
David


Current Thread