Help - Search - Members - Calendar
Full Version: Percent in statusbar?
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
Powha
Why why won't this work??

$mul($div(%playback_time_seconds%,%length_seconds%),100) '%'
randal1013
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
This is the code I have, that outputs the percentage as XX%:
$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)'%'
Powha
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.
Invision Power Board © 2001-2008 Invision Power Services, Inc.