How can i keep zero's in a string with numbers?
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
Just replace the 2 in "%02d" with whatever length you want it to be. What this means is: make sure the output is always 2 characters long. If it isn't, pad it with zeros.
Yes i see that this way works most efficient thank you.
Reply


Messages In This Thread
How can i keep zero's in a string with numbers? - by AIped - 30.06.2014, 12:14
Re: How can i keep zero's in a string with numbers? - by Stinged - 30.06.2014, 12:22
Re: How can i keep zero's in a string with numbers? - by Vince - 30.06.2014, 12:28
Re: How can i keep zero's in a string with numbers? - by AIped - 30.06.2014, 12:48

Forum Jump:


Users browsing this thread: 1 Guest(s)