MathLib.abs returns the absolute value of a number.
eglx.lang
static function abs(value smallint in) returns(smallint); static function abs(value int in) returns(int); static function abs(value bigint in) returns(bigint); static function abs(value decimal in) returns(decimal); static function abs(value smallfloat in) returns(smallfloat); static function abs(value float in) returns(float);
The function returns a number that is of the same type as value.
After the following code runs, result is 5.0:
input, result SMALLFLOAT; input = -5.00; result = mathLib.abs(runningBalance); // result = 5.0
Target | Issue |
---|---|
Java | No issues. |
JavaScript | No issues. |