Thread: Zero padding
View Single Post
Old Feb 17th, 2007, 12:21 PM   #4
Silicon_Pudding
Newbie
 
Silicon_Pudding's Avatar
 
Join Date: Jun 2006
Location: In a box
Posts: 27
Rep Power: 0 Silicon_Pudding is on a distinguished road
Quote:
Originally Posted by Jimbo View Post
use printf %0nd $yourNum where n is the length you want displayed
is n a variable? I don't want n to be predefined, but calculated at run time.

I apologize for deleting the original post
__________________
~ Silicon Enhanced Pudding
"It's magically delicious"
Silicon_Pudding is offline   Reply With Quote