[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

format string with leading zeros

Subject: format string with leading zeros
From: henry human <henry_human@xxxxxxxx>
Date: Wed, 4 Jan 2012 15:46:24 +0000 (GMT)
 format string with leading zeros
 
Hi 
I have following scenario, the itemCode field  must be 14 digits lang. I
try to ignore the last two decimals of the itemCode field if the itemCode is
more than 14 digits long (16 digits). And if the itemCode has less than 14,
 fill field with leading zeros so that the itemCodeCode is still 14 digits
long.
 
Input Example(1): itemCode : 0.0123456789 
output itemCode:
000.0123456789
 
Input Example(2): itemCode : 0.01111123456789 
output
itemCode: 0.011111234567
Thanks you

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.