I currently need to find the percentage of a song (for my program), I have tried doing it the normal way of (current position)/(total length of song), however since seconds go up to 60 and not 100 this does not work. How would I do this with seconds? Both the current position and length of song are in seconds.
To be more clear, how would I work out the percentage of the song, knowing that I am currently 122.277seconds the way through a song that is total of 177320seconds.
Thanks
You can do this in the usual way, as long as both current position and total length of the song are in the same units (e.g. seconds or minutes or hours, etc). In your example it would be $$ \frac{122.277}{177320} \approx 0.0689 \% $$
(You must have a really long song, $177320$ seconds is about 50 hours, you sure you got the right units?)