# How To Multiply By A Percent?

Discussion in 'World Editor Help' started by WolfieeifloW, May 27, 2011.

1. ### WolfieeifloWWEHZ Helper

Ratings:
+372 / 0 / -0
I need to multiply by a certain percent, 200.
How would I go about doing this?

(My number) x 200%

How to do that in WE?
Prefer JASS, but I can convert from GUI too.

2. ### CarneroxThe one and only.

Ratings:
+83 / 0 / -0
JASS:
``````set MyVariable = 50*I2R(2.00)
//If you use using both reals.
set MyVariable = 50.00*2.00``````

This is simple math.
._____.

3. ### Dinowcdon't expect anything, prepare for everything

Ratings:
+223 / 0 / -0
^
actually for 200%, you multiply it with 3, not 2

4. ### WolfieeifloWWEHZ Helper

Ratings:
+372 / 0 / -0
So, 3.00 for 200%.
So 30% would be 1.30?

Ratings:
+83 / 0 / -0
50*200%=100.
50*2.00=100.

200%=2.00.

6. ### Dinowcdon't expect anything, prepare for everything

Ratings:
+223 / 0 / -0
...

50 increased by 100% is 100

50 increased by 200% is 150

yes

EDIT: I might have been confused with your question there

100% from 50 is 50, so 200% is indeed 100
so 30% is actually 0.3, but to increase some number by 30% you multiply it with 1.3

7. ### keychupActive Member

Ratings:
+34 / 0 / -0
to increase by a percentage use this formula:
(Original Number) x (1.00+(Percentage/100))
To decrease:
(Original Number) x (1.00-(Percentage/100))
To find the percent value:
(Original Number) x ((Percentage/100))