Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I have two numbers which summed up are considered to be $100\%$.

The first number $n_1$ should decide the percentage amount.

For e.g.,

$$n_1 = 5$$

$$n_2 = 15$$

so the percentage in this case would be $25\%$.

How do I calculate this? :) I mean how do I get the formula?

share|improve this question
add comment

1 Answer

In this case, we want $\dfrac{n_1}{n_1 + n_2}$. I don't really have much else to say about it. If you want it in %, multiply by 100. Otherwise, it's a decimal between 0 and 1.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.