MathLib.pow function

MathLib.pow returns a number raised to the power of a second number.

Package

eglx.lang

Syntax
static function pow(value float in, exponent float in) returns(float);
value
Takes the value on which the exponent operates.
exponent
Takes the exponent.
Example use

After the following code runs, the value of result is 8:

x INT = 2;
y INT = 3;
result = mathLib.pow(x,y);
Here is an alternative way to receive the value:
result = x**y;
Comments

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.

Compatibility

Table 1. Compatibility
Target Issue
Java No issues.
JavaScript No issues.