Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Percent in statusbar? (Read 2409 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Percent in statusbar?

Why why won't this work??

$mul($div(%playback_time_seconds%,%length_seconds%),100) '%'

Percent in statusbar?

Reply #1
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.

Percent in statusbar?

Reply #2
This is the code I have, that outputs the percentage as XX%:
$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)'%'

 

Percent in statusbar?

Reply #3
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.