Hello,
I am having some problems calculating a percentage of a number using php.
For example if i have a questionnaire that users answer on my site and the number of answers is tabulated to be 2662 and i want to calculate the percentage of yes answers from no how do i go about it?
P.S i also know how to get the number of yes and no but i don't know how to calculate the percentage of yes and no.
Any help would be appreciated thank you.
Thank you.
I am having some problems calculating a percentage of a number using php.
For example if i have a questionnaire that users answer on my site and the number of answers is tabulated to be 2662 and i want to calculate the percentage of yes answers from no how do i go about it?
P.S i also know how to get the number of yes and no but i don't know how to calculate the percentage of yes and no.
Any help would be appreciated thank you.
Thank you.
Comment