Re: [xsl] Round function in XSL 1.0

Subject: Re: [xsl] Round function in XSL 1.0
From: Anil Kumar Veeramalli <anil.v@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 07 Apr 2010 13:12:38 +0530
Thanks all for your replies.

I think this approach doesn't work....my amount value is 8.42500. what I want is 8.43 not 8.42

Thanks,
Anil
Michael Kay wrote:
Alternatively,

format-number($amount, '#.00')

although XSLT 1.0 isn't very prescriptive about the rounding rules that
format-number should use.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay

Current Thread