Number Functions

These are operations whose operands are numbers (integers, floating point numbers, etc.).

Addition

Represented by the plus sign. Takes two numeric operands and combines their quantity or value.


Subtraction

Represented by the dash sign. Takes two numeric operands and takes away the quantity of the second from the quantity of the first.


Multiplication

Represented by the cross sign. Takes two numeric operands, say X and Y. X times Y (X multiplied by Y) results in adding X copies of Y together, or adding Y copies of X together, for it has the commutative property.


Division

Represented by a slash. Is the inverse of the multiplication. Takes two numeric operands, say X and Y. X divided by Y results in the number of groups of size Y one can form out of a group of size X.


Maximum

Given two numbers, it returns the largest one in value.


Minimum

Given two numeric parameters, it returns the smallest one in value.


Average

Given two numeric parameters X and Y, Avg(X, Y) returns the following: (X + Y)/2 where + is the addition and / the division explained above.


Absolute

Takes a real number and returns its numerical value without regard of its sign.


Rounding up

Takes two numeric parameters, a floating point number and an integer, and returns an approximate representation of the first using only as many decimal numbers as the second parameter's value.


Percentage

Takes two numeric operands and the result is the first number expressed as a fraction of the second. For instance, X % of Y = (X x Y)/100.


Square root

Takes just one numeric operand X since the second is always two (square). It returns a number R such that R2 = X, meaing R x R = X.


Modular arithmetic

Takes two numeric operands X and Y, and it returns the remnant of the division of X by Y.