MathLib.sqrt returns the positive square root of a number.
eglx.lang
static function sqrt(value float in) returns(float);
After the following code runs, the value of result is 2.0:
myVar INT = 4; result FLOAT = mathLib.sqrt(myVar);
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. |