Thu, Dec 26, 7:06 AM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Dec 23 7:38 pm)



Subject: Simple coding problem in Python


DSQRD ( ) posted Thu, 08 November 2012 at 10:18 AM ยท edited Thu, 18 July 2024 at 10:43 PM

I would like to convert an integer to a padded string.

IE 1 becomes 0001

Can anyopne show me how.


bagginsbill ( ) posted Thu, 08 November 2012 at 10:38 AM

x = 1

print "%04d" % x


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)


DSQRD ( ) posted Thu, 08 November 2012 at 11:11 AM

Thanks. I knew it was simple.


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.