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
1900 4 1-
- Robin Cai
- Member
- 19 posts
- Joined: Sept. 2020
- Offline
-
- jsmack
- Member
- 8177 posts
- Joined: Sept. 2011
- Offline
-
- mestela
- Member
- 1854 posts
- Joined: May 2006
- Offline
-
- Robin Cai
- Member
- 19 posts
- Joined: Sept. 2020
- Offline
-
- Robin Cai
- Member
- 19 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

