Do PHP calculations

-3

I have some doubt regarding some calculations, I made the following table using html and php, what I intend now is that the result calculates me percentages. That is, if the goal is equal to the final evaluation the result will be 100%, on the other hand, if the final evaluation is less than the goal should give 0%, but there is still another situation, Final Evaluation = Initial Evaluation but lower than the goal should appear 75%. I hope you can understand what I want but at the code level I can not do it, can anyone help me?

    
asked by anonymous 16.04.2018 / 16:33

1 answer

0

To calculate percentage use three rule .

If you want to know what percentage 4 stands for 8 : (4 * 100) / 8

    
27.04.2018 / 04:18