Is there a comprehensive list of the "basic arithmetic calculations" (http://installbuilder.bitrock.com/changelog.html) a <mathExpression> action is able to perform?

asked 18 Apr '13, 09:50

Dirk%20Stegemann's gravatar image

Dirk Stegemann
681283244
accept rate: 31%

edited 13 Aug '13, 04:09

carlos's gravatar image

carlos ♦♦
11


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 pseudo-random floating-point 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 floating-point 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 floating-point value
  • floor(arg) -- rounds down to nearest integral floating-point value
  • fmod(x, y) -- floating-point 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 right-angled 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
link

answered 18 Apr '13, 10:33

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2
×1
×1
×1

Asked: 18 Apr '13, 09:50

Seen: 983 times

Last updated: 13 Aug '13, 04:09