Apama 10.15.0 | Building and Using Apama Dashboards | Dashboard Function Reference | Expression Syntax in Dashboard Functions | Arithmetic functions in dashboard function expressions
 
Arithmetic functions in dashboard function expressions
The following arithmetic functions are supported in dashboard function expressions:
*abs()
double abs(double a)
Returns the absolute value of a double value.
*acos()
double acos(double a)
Returns the arc cosine of an angle, in the range of 0.0 through pi.
*asin()
double asin(double a)
Returns the arc sine of an angle, in the range of -pi/2 through pi/2.
*atan()
double atan(double a)
Returns the arc tangent of an angle, in the range of -pi/2 through pi/2.
*atan2()
double atan2(double y, double x)
Converts rectangular coordinates (x, y) to polar (r, theta).
*ceil()
double ceil(double a)
Returns the smallest (closest to negative infinity) double value that is greater than or equal to the argument and is equal to a mathematical integer.
*cos()
double cos(double a)
Returns the trigonometric cosine of an angle.
*exp()
double exp(double a)
Returns Euler's number e raised to the power of a double value.
*floor()
double floor(double a)
Returns the largest (closest to positive infinity) double value that is less than or equal to the argument and is equal to a mathematical integer.
*IEEEremainder()
double IEEEremainder(double f1, double f2)
Computes the remainder operation on two arguments as prescribed by the IEEE 754 standard.
*log()
double log(double a)
Returns the natural logarithm (base e) of a double value.
*max()
double max(double a, double b)
Returns the greater of two double values.
*min()
double min(double a, double b)
Returns the smaller of two double values.
*pow()
double pow(double a, double b)
Returns the value of the first argument raised to the power of the second argument.
*random()
double random()
Returns a double value with a positive sign, greater than or equal to 0.0 and less than 1.0.
*rint()
double rint(double a)
Returns the double value that is closest in value to the argument and is equal to a mathematical integer.
*round()
long round(double a)
Returns the closest long value to the argument.
*sin()
double sin(double a)
Returns the trigonometric sine of an angle.
*sqrt()
double sqrt(double a)
Returns the correctly rounded positive square root of a double value.
*tan()
double tan(double a)
Returns the trigonometric tangent of an angle.
*toDegrees()
double toDegrees(double angrad)
Converts an angle measured in radians to an approximately equivalent angle measured in degrees.
*toRadians()
double toRadians(double angdeg)
Converts an angle measured in degrees to an approximately equivalent angle measured in radians.