I want to change an integar to a string, but add many 0 in the front.
For example, change 2 to "002".
How do I do that?
Change an integar to a string, but add many 0 in the front
962 4 1- robinrainup
- Member
- 16 posts
- Joined: Sept. 2020
- Offline
- jsmack
- Member
- 7796 posts
- Joined: Sept. 2011
- Online
- mestela
- Member
- 1743 posts
- Joined: May 2006
- Offline
- robinrainup
- Member
- 16 posts
- Joined: Sept. 2020
- Offline
- robinrainup
- Member
- 16 posts
- Joined: Sept. 2020
- Offline
mestelaThanks!
padzero in hscript, or sprintf in vex.
https://www.sidefx.com/docs/houdini/expressions/padzero.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/vex/functions/sprintf.html [www.sidefx.com]
-
- Quick Links