xsl-list
[Top] [All Lists]

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

2012-09-27 17:51:17
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>