Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Active Server Pages (ASP)
Expertise: Beginner
Sep 29, 1999

Strip Leading Zeros in ASP Output

Question:
How do I strip off leading zeros from data displayed from an ASP page?

Answer:
Use the FormatNumber function.
If value = "0000046" Then FormatNumber(value,0) will result in 46. FormatNumber(value,2) will result in 46.00

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date