If I were to store the number 11.6677 into a variable, how would I operate only on the value to the right of the decimal.
Here’s why I’m asking this.
I am creating some time code logic the converts seconds into SMTPE timecode format.
For example 700 seconds / 60 seconds per minute yields 11 minutes and some change. The change is .666666 (repeating) In order to determine the number of seconds that are left over after the 11 minutes are determined is to multiply the decimal value .66666 times 60 seconds per minute. This would yield 39.6 seconds. So 700 seconds is 11 minutes and 39 seconds.
What thoughts do you have? Assuming my math approach is right, what Flash ActionScript things will help with this?
Is there a better way?
Thanks,
Joshua