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
Home » 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
At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.
See our full editorial policy.