[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] format number
Subject: RE: [xsl] format number From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Thu, 12 Sep 2002 23:52:11 +0100 |
substring(concat(string($N), '00000000000'), 1, 10) Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Andrew Welch > Sent: 12 September 2002 17:42 > To: Xsl-List (E-mail) > Subject: [xsl] format number > > > > Hi, > > I get numbers such as > > 1 > 212 > 2121 > > from <xsl:number>. > > I need these numbers to be 10 digits, with numbers padded > with trailing > zeros: > > 1000000000 > 2120000000 > 2121000000 > > I can get leading zeros, but not trailing, and any attempt to > multiply > > <xsl:text>0.<xsl:number/> > > by 1000000000 (if you get what I mean) even after using > number() I still get NaN :( > > whats the best way of doing this? > > cheers > andrew > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.386 / Virus Database: 218 - Release Date: 09/09/2002 > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] format number, David Carlisle | Thread | [xsl] RE: format number, Andrew Welch |
[xsl] Matching on of many string li, Richard Rowell | Date | RE: [xsl] XSLT Extension Functions, Michael Kay |
Month |