0
$\begingroup$

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?

$\endgroup$
2
$\begingroup$

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.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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