Hi,
I don't know if I'm overseeing something very obvious here - sorry, if that would be the case…
How can I “rasterize” a float to have only a given number of fractional digits?
What I mean is an expression like (desired result is 9.12):
xx(2, 9.123456)
Is there something already available? Or do I have to build a function myself?
Thanks,
Marc
expression q: rasterize float to n number of fract digits
4734 5 2- bollili
- Member
- 205 posts
- Joined: Dec. 2009
- Offline
- hanton
- Member
- 36 posts
- Joined: Oct. 2011
- Offline
- protozoan
- Member
- 1621 posts
- Joined: March 2009
- Offline
- bollili
- Member
- 205 posts
- Joined: Dec. 2009
- Offline
- animatrix_
- Member
- 4516 posts
- Joined: Feb. 2012
- Offline
You can use exread to read your custom hscript expressions:
http://www.sidefx.com/docs/houdini12.5/commands/exread [sidefx.com]
http://www.sidefx.com/docs/houdini12.5/commands/exread [sidefx.com]
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
- bollili
- Member
- 205 posts
- Joined: Dec. 2009
- Offline
-
- Quick Links