MathLib.ldexp takes as input a numeric value and an exponent that represents a power of 2. The function returns the value of the expression times 2 to the specified power.
eglx.lang
static function ldexp(value float in, exponent int in) returns(float);
After the following code runs, the value of result is the product of the first argument times 2 to the power represented by the second:
// result = myMultiplier * 2**myExponent result = mathLib.Ldexp(myMultiplier,myExponent);
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. |