IPB

Welcome Guest ( Log In | Register )

> foobar2000 Tech Support Forum Rules

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.

 
Reply to this topicStart new topic
Percent in statusbar?
Powha
post 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) '%'
Go to the top of the page
+Quote Post
randal1013
post 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.
Go to the top of the page
+Quote Post
dBaines
post 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%)'%'
Go to the top of the page
+Quote Post
Powha
post Apr 26 2006, 20:42
Post #4





Group: Members
Posts: 21
Joined: 11-January 06
Member No.: 27034



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.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd May 2013 - 13:22