Percent in statusbar? |
Please read foobar2000 Tech Support Forum Rules before posting and comply with all the points.
Failure to provide all the information pointed out in the above document in your post is considered wasting other people's time and in extreme cases will lead to your topic getting locked without a reply.
See also: Hydrogenaudio Terms of Service.
![]() ![]() |
Percent in statusbar? |
Apr 26 2006, 20:22
Post
#1
|
|
|
Group: Members Posts: 21 Joined: 11-January 06 Member No.: 27034 |
Why why won't this work??
$mul($div(%playback_time_seconds%,%length_seconds%),100) '%' |
|
|
|
Apr 26 2006, 20:28
Post
#2
|
|
![]() Group: Members Posts: 301 Joined: 1-March 06 Member No.: 28189 |
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.
|
|
|
|
Apr 26 2006, 20:29
Post
#3
|
|
![]() Group: Members Posts: 21 Joined: 21-March 06 Member No.: 28652 |
This is the code I have, that outputs the percentage as XX%:
$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)'%' |
|
|
|
Apr 26 2006, 20:42
Post
#4
|
|
|
Group: Members Posts: 21 Joined: 11-January 06 Member No.: 27034 |
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 22nd May 2013 - 13:22 |