main/Configuration/listings/functions
Functions that may be used in a reward expression:
| Name | Description |
|---|---|
| abs(x) | Returns the absolute value. |
| acos(x) | Returns the arc cosine of an angle, in the range of 0.0 through pi. |
| asin(x) | Returns the arc sine of an angle, in the range of -pi/2 through pi/2. |
| atan(x) | Returns the arc tangent of an angle, in the range of -pi/2 through pi/2. |
| cbrt(x) | Returns the cube root of the value. |
| ceil(x) | Returns the smallest (closest to negative infinity) value that is not less than the argument and is equal to a mathematical integer. |
| cos(x) | Returns the trigonometric cosine of an angle. |
| cosh(x) | Returns the hyperbolic cosine of a value. |
| exp(x) | Returns Euler's number e raised to the power of a value. |
| expm1(x) | Returns e^x - 1. |
| floor(x) | Returns the largest (closest to positive infinity) value that is less than or equal to the argument and is equal to a mathematical integer. |
| log(x) | Returns the natural logarithm (base e) of a value. |
| pow(a, b) | Returns a to the power of b. |
| sin(x) | Returns the trigonometric sine of an angle. |
| sinh(x) | Returns the hyperbolic sine of a value. |
| sqrt(x) | Returns the positive square root of a value. |
| tan(x) | Returns the trigonometric tangent of an angle. |
| tanh(x) | Returns the hyperbolic tangent of a value. |
| lerp(a, b, x) | A value that linearly interpolates between the a and the b parameter. |
| norm(a, b, x) | Normalize the x parameter between a and b. |
| max(a, b) | Returns the greater of the two values. |
| min(a, b) | Returns the smaller of the two values. |
| round(x) | Returns the closest whole integer to the value. |
Comments