Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - format-number [Thread Next] Re: format-numberTo: NULL Date: 9/3/2004 2:15:00 PM Something like : <xsl:value-of select="concat(substring-before(LastPrice,'.'),'.',substring(substring-after(LastPrice,'.'),1,4))" /> So what that does is say, get the substring before the decimal point Concat it with a . (dot) Get the substring After the decimal point, and use the first 4 characters - substring(blah,1,4) - as the part to complete the 'concat' statement. There are (almost certainly) less verbose / more efficient ways. It works, though. Cheers - Neil On Fri, 3 Sep 2004 15:17:35 +0200, "Saulot" <saulot@l...> wrote: >Hi, >Got this : <xsl:value-of select="LastPrice" /> > >How can I tell my XSL I want the result with 4 digit max. (ie : 1.1234 and >not 1.1234999999999) > >Thks for help. > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
