How To Multiply By A Percent?

WolfieeifloW

WEHZ Helper
Reaction score
372
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.
 

Carnerox

The one and only.
Reaction score
84
JASS:
set MyVariable = 50*I2R(2.00)
//If you use using both reals.
set MyVariable = 50.00*2.00


This is simple math.
._____.
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
^
actually for 200%, you multiply it with 3, not 2
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
50*200%=100.
50*2.00=100.

200%=2.00.
...

50 increased by 100% is 100

50 increased by 200% is 150

So, 3.00 for 200%.
So 30% would be 1.30?
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
 

keychup

Active Member
Reaction score
34
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))
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top