...

View Full Version : Help with math.



shedokan
01-02-2008, 08:06 PM
I have these variables:
totalVotes = 56
totalOptions = 3
currentVotes = 17

I want to find out how many precent is "currentVotes" from "totalVotes".
I know it's kinda basic but I forgot.
thanks.

tanuki
01-02-2008, 08:19 PM
I think it's 30 percent but I'm not sure...
i kinda forgot too... maybe i did my math wrong. oh well o.k. bye

Philip M
01-02-2008, 08:42 PM
percentage = (currentVotes/totalVotes) * 100 // (result is 30.35714)

shedokan
01-02-2008, 08:59 PM
I kinda figured it out my self but thanks.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum