[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Rounding a number
From: "Sam Carleton" <scarleton@xxxxxxxxxxxxxxxx>
Date: Tue, 10 Oct 2006 10:44:37 -0400
On 9/15/06, cknell@xxxxxxxxxx <cknell@xxxxxxxxxx> wrote:
<xsl:value-of select="round(1000*(4 div 3)) div 1000"/>

Charles,


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?

Sam

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member