Math - power

Raizn

New Member
Reaction score
2
Hi Helpers,

id wonder if some of you guys could tell me about that in WE. I tested it with one of my custom spells and got some nice 1/2 circles. But how exactly work this with the numbers ?!

Bye Raizn
 

Romek

Super Moderator
Reaction score
963
The number basically multiplies itself by itself the given amount of times.
For example: 5 to the power of (^) 3 is the same as 5 * 5 * 5.

Wiki Link
 

Romek

Super Moderator
Reaction score
963
The [ljass]Pow[/ljass] native is used for larger powers or if you need to use decimals.
JASS:
r = Pow(r, 34)
r = r * r * r * r * r* r * r // etc.

JASS:
r = Pow(r, 1.5)
r = r * ///Wait, wut?
 

Romek

Super Moderator
Reaction score
963
That'd uses a native call in the end anyway, so it's hardly an alternative to [ljass]Pow[/ljass].
 

Rushhour

New Member
Reaction score
46
yeah I know, just wanted to say it^^
I wonder which one is "faster", I guess the Pow includes some kind of "rooting" (don't know the mathematical expressions in english..)
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top