This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
format number
- From: "Andrew Welch" <awelch at piper-group dot com>
- To: "Xsl-List (E-mail)" <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 12 Sep 2002 17:42:18 +0100
- Subject: [xsl] format number
- Reply-to: xsl-list at lists dot mulberrytech dot com
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