### Parsing a number

Posted:

**Wed Jun 23, 2010 7:16 pm**I have the time in seconds;

for example 274.61 sec

I have the number divided by 60 for minutes, the result is 4.58

The .58 needs to be converted to 32 for the sec.

How dod you parse teh variable 4.58 into 4 and 58 and then

convert the 58.

Then I could place the two variables togather and come up with the

4 min 32 sec.

Current commands;

Math "[MediaPlayer1]/1000" "2" "[MediaPlayer2]"

Math "([MediaPlayer2]/60)*.6" "2" "[MediaPlayer3]"

Ideas

Thanks;

for example 274.61 sec

I have the number divided by 60 for minutes, the result is 4.58

The .58 needs to be converted to 32 for the sec.

How dod you parse teh variable 4.58 into 4 and 58 and then

convert the 58.

Then I could place the two variables togather and come up with the

4 min 32 sec.

Current commands;

Math "[MediaPlayer1]/1000" "2" "[MediaPlayer2]"

Math "([MediaPlayer2]/60)*.6" "2" "[MediaPlayer3]"

Ideas

Thanks;