mirHadi Posted September 20, 2015 Share Posted September 20, 2015 hello beginner question sorry!. the document says: padzero(5, 126) = 00126 padzero(5, 23) = 00023 padzero(1, 23) = 23 but does it round up or down too? please look at the file. padzero ( 2, $F/$FPS) should result in 00 for $F<12 ($F/$FPS <0.5) and for >=12 ($F/$FPS >=0.5) results in 01. am I wrong about how this function is doing?! thank you in advance frameDisplay.hip Quote Link to comment Share on other sites More sharing options...
anim Posted September 20, 2015 Share Posted September 20, 2015 yes it rounds from 0.5 up and below 0.5 down (the same way as rint() does) what exactly seems to be the problem? Quote Link to comment Share on other sites More sharing options...
mirHadi Posted September 21, 2015 Author Share Posted September 21, 2015 just I didn't know that and seems strange to me! and the document did n't mention it at all!! good to know! thank you very much/ 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.