romanus Posted January 23, 2018 Share Posted January 23, 2018 While copying attributes and paste as relative references to a viewport comment to my cam (values to compare while doing multiple flipbooks) I have number conversion from 0.3 to 0.2999999999999 and so on. Can I have the exact same number that I'm using under my setup? Thanks for any tip on this Quote Link to comment Share on other sites More sharing options...
f1480187 Posted January 23, 2018 Share Posted January 23, 2018 (edited) You can switch expression language to Python and try one of this: 'Test: %g' % ch('../geo1/null1/test') 'Test: %.5f' % ch('../geo1/null1/test') Edited January 23, 2018 by f1480187 Quote Link to comment Share on other sites More sharing options...
romanus Posted January 24, 2018 Author Share Posted January 24, 2018 it seems this is only happening in new version of Houdini Quote Link to comment Share on other sites More sharing options...
AntoineSfx Posted January 24, 2018 Share Posted January 24, 2018 Also note that you can't represent 1/10 exactly in binary. The value displayed is actually closer to the number used internally than the number you typed. http://www.exploringbinary.com/why-0-point-1-does-not-exist-in-floating-point/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.