Which operations can be used in a mathExpression action?
AnsweredIs there a comprehensive list of the "basic arithmetic calculations" (http://installbuilder.bitrock.com/changelog.html) a <mathExpression>
action is able to perform?

The following operations are supported:

+
 adding 

 subtracting 
*
 multiplication 
/
 division 
%
 modulo 
<<
and>>
 bitwise rotation 
&
 bitwise and 

 bitwise or 
^
 bitwise xor
It also supports the following functions:

pow(x, y)
 Computes the value of x raised to the power y 
rand()
 Returns a pseudorandom floatingpoint value in the range (0,1) 
sqrt(arg)
 square root of arg 
srand(arg)
 The arg, which must be an integer, is used to reset the seed for the random number generator of rand 
abs(arg)
 absolute value of arg 
double(arg)
 converts arg to floatingpoint value if it is not 
int(arg)
 converts arg to integer if it is not an integer value 
round(arg)
 If arg is an integer value, returns arg, otherwise converts arg to integer by rounding and returns the converted value 
ceil(arg)
 rounds up to nearest integral floatingpoint value 
floor(arg)
 rounds down to nearest integral floatingpoint value 
fmod(x, y)
 floatingpoint remainder of the division of x by y 
acos(arg)
 arc cosine of arg, in the range [0,pi] radians 
asin(arg)
 arc sine of arg, in the range [pi/2,pi/2] radians 
atan(arg)
 arc tangent of arg, in the range [pi/2,pi/2] radians 
atan2(y, x)
 arc tangent of y/x, in the range [pi,pi] radians 
cos(arg)
 cosine of arg, measured in radians 
cosh(arg)
 hyperbolic cosine of arg 
exp(arg)
 exponential of arg, defined as e**arg 
hypot(x, y)
 Computes the length of the hypotenuse of a rightangled triangle sqrt(xx+yy) 
log(arg)
 natural logarithm of arg 
log10(arg)
 base 10 logarithm of arg 
sin(arg)
 sine of arg, measured in radians 
sinh(arg)
 hyperbolic sine of arg 
tan(arg)
 tangent of arg, measured in radians 
tanh(arg)
 hyperbolic tangent of arg

Please sign in to leave a comment.
Comments
1 comment