[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
On 27/09/2012 23:09, Florent Georges wrote:
or perhaps
<xsl:value-of select="format-number(sum(num),'#.00')"/>
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XPath 1.0: sum() and prec, Florent Georges | Thread | Re: [xsl] XPath 1.0: sum() and prec, Michael Kay |
Re: [xsl] XPath 1.0: sum() and prec, Florent Georges | Date | Re: [xsl] XPath 1.0: sum() and prec, Michael Kay |
Month |