|
Subject: Re: [xsl] Rounding a number From: "Sam Carleton" <scarleton@xxxxxxxxxxxxxxxx> Date: Tue, 10 Oct 2006 10:44:37 -0400 |
<xsl:value-of select="round(1000*(4 div 3)) div 1000"/>
That is worked wonders, except that folks are asking to keep trailing zeros now! So, if the number is 2.42, they want to see 2.4200. How would I go about doing that in XSLT 1.0?
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] XML to SVG using XSLT, David Carlisle | Thread | Re: [xsl] Rounding a number, David Carlisle |
| RE: [xsl] XSLT functions in XPath, Michael Kay | Date | Re: [xsl] Rounding a number, David Carlisle |
| Month |