Page 1 of 1

%

PostPosted: Mon Jan 02, 2012 11:24 am
by BogdansB
how can i make percents?

variable a - 35% of variable b , for example

Re: %

PostPosted: Mon Jan 02, 2012 1:01 pm
by phyzix5761
Percent is nothing more than multiplying by the decimal of whatever percentage you want. 35% of 100 is 35. In order to get that you do 100 * .35.

So if you want 63% of a you do b = a * .63.

Re: %

PostPosted: Mon Jan 02, 2012 2:28 pm
by schnellboot
BogdansB wrote:variable a - 35% of variable b

Code: Select all
a -= b * 0.35

Re: %

PostPosted: Mon Jan 02, 2012 8:42 pm
by BogdansB
ok thanks :D