[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] question regarding the formatting of a number


Subject: Re: [xsl] question regarding the formatting of a number
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Tue, 11 Apr 2006 14:49:53 +0100

On 4/11/06, Sascha Ohler <sas0903@xxxxxxxxx> wrote:
> I'm new to XSL and have come across the following issue. I'm trying to
> format this number 54287 to display as $542.87 and seem unable to get it
> figured out.
> Any suggestions?

How about:

format-number(54287 div 100, '$.00')

cheers
andrew


Current Thread
Keywords
xsl