how do you calculate a numbers %?
the calculator logic is good but it doesnt have a % option like the top number is 50 and the bottom number is 35 so how can i do 35% of 50?
-
If there s no short hand there's always the school math.
-
Pressed post a little early -i mean in this case
35 ÷ 100=Z
Z x 50= what you want.
But this would be a number output not a %. Would have to then run through something else with a % output. -
Yes, just take the school math. All you really have to remember is to shift the percentage by two decimals. That's literally what it is: number/100.
So 40% = 0.4
You take your value, multiply it by 0.4, bam, that's 40%. 100% of something is multiplying it by 1.
If you want to make it a bit more readable to your taste, have a slider giving you a value in percent and then divide by a hundred before multiplying with your main value. Other than that, you should be set with this.
Please sign in to leave a comment.