Why why won't this work??
$mul($div(%playback_time_seconds%,%length_seconds%),100) '%'
randal1013
Apr 26 2006, 13:28
because foobar doesn't 'do' decimal points. by the time your equation multiplies the quotient by 100, foobar has already rounded the quotient to 0, because it was 0.xx. you have to multiply the playback_time_seconds by 100 before dividing it by length_seonds.
dBaines
Apr 26 2006, 13:29
This is the code I have, that outputs the percentage as XX%:
$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)'%'
QUOTE(dBaines @ Apr 26 2006, 09:29 PM)

This is the code I have, that outputs the percentage as XX%:
$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)'%'
Nice!
Works great thnx alot.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.