shango Posted April 10, 2009 Posted April 10, 2009 I have a field where users input "frames" as a whole number and I need to have "seconds" calculated automatically. 30 frames = 1 second The resulting seconds would auto populate another field. Not sure how to proceed here. Any guidance is appreciated. Thanks
LaRetta Posted April 10, 2009 Posted April 10, 2009 If you have 29 frames, what should the seconds show? If you have 44 frames, what should the seconds show? Do you want fraction seconds or round up or down or truncate?
shango Posted April 10, 2009 Author Posted April 10, 2009 Hi and thanks for responding so quickly! Here's what I've come up with so far. Round((shots::frames)/30;2) However I need to round up to the nearest .5 (half second) For example: 29 frames rounds up to 1 second 31 frames rounds up to 1.5 seconds 46 frames rounds up to 2 seconds I'm stumped.
shango Posted April 10, 2009 Author Posted April 10, 2009 Well that was it. Never would have thought to look that one up. Thank you very much. It might be worth at least familiarizing myself with all the built in functions.
comment Posted April 10, 2009 Posted April 10, 2009 It might be worth at least familiarizing myself with all the built in functions. Highly recommended.
Recommended Posts
This topic is 5764 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now