doowle
09-16-2002, 02:03 AM
Can anyone tell me a script for adding leading zeros?
I have an asp page that pulls a database number, "Total" and prints it to an output page. The actual digits of Total might be 1 or 2 or 3, but the output must always be 3...
i.e, if total is 5, my output be 005
it total is 15, my output must be 015
if total is 115, my output must be 115
anyone?
I have an asp page that pulls a database number, "Total" and prints it to an output page. The actual digits of Total might be 1 or 2 or 3, but the output must always be 3...
i.e, if total is 5, my output be 005
it total is 15, my output must be 015
if total is 115, my output must be 115
anyone?