xsl-list
[Top] [All Lists]

Re: [xsl] Rounding a number

2006-10-10 07:44:50
On 9/15/06, cknell(_at_)onebox(_dot_)com <cknell(_at_)onebox(_dot_)com> 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

--~------------------------------------------------------------------
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>