MathLib.pow returns a number raised to the power of a second number.
eglx.lang
static function pow(value float in, exponent float in) returns(float);
After the following code runs, the value of result is 8:
x INT = 2; y INT = 3; result = mathLib.pow(x,y);
result = x**y;
In the case of Java™, EGL uses methods in the Java StrictMath class that are equivalent to the EGL functions. This usage ensures that the runtime behavior is the same for every Java Virtual Machine.
Target | Issue |
---|---|
Java | No issues. |
JavaScript | No issues. |