Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - formatting numbers [Thread Next] Re: formatting numbersTo: NULL Date: 5/3/2006 3:17:00 PM Mike P wrote: > I have an xsl file that I am using to show a number of rows from a > database. One of the columns needs to be in a numeric format with 2 > decimal places (x.xx). How do I format a number in XSL? Use the format-number function, see <http://www.w3.org/TR/xslt#format-number> e.g. <xsl:value-of select="format-number(3.1415927, '#.##')" /> -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
