Math Functions
List of math functions
Absolute Value (ABS
)
ABS
)Returns the absolute value of a number.
Takes 1 argument.
The argument has to be a number or a variable.
Input Example:
Average (AVG
)
AVG
)Returns the average (arithmetic mean) of the arguments.
Takes any number of arguments greater than 0.
Each argument must be a number or a variable.
Alternatively, AVG can take an array of numbers in any argument.
Input Example:
Ceiling (CEILING
)
CEILING
)Returns a number rounded up to the nearest whole number.
Takes 1 argument.
The argument must be a number or a variable.
Input Example:
Count (COUNT
)
COUNT
)Counts the number of its arguments or elements of provided arrays.
Takes any number of arguments greater than 0.
When given an array, it looks inside the array and counts in its elements.
Input Example:
Division (/
)
/
)Takes 2 arguments. Both arguments must be numbers or variables.
Input Example:
Exponential (EXP
)
EXP
)Returns the value of exponential function of the given numerical argument.
Takes 1 argument.
The argument must be a number or a variable.
Input Example:
Floor (FLOOR
)
FLOOR
)Returns a number rounded down to the nearest whole number.
Takes 1 argument.
The argument must be a number or a variable.
Input Example:
Maximum (MAX
)
MAX
)Returns the largest number from those provided.
Takes any number of arguments greater than 0.
Each argument must be a number or a variable.
Alternatively, MAX can take an array of numbers in any argument.
Input Example:
Median (MEDIAN
)
MEDIAN
)Returns the median of the given numbers. The median is the number in the middle of a set of numbers.
Takes any number of arguments greater than 0.
Each argument must be a number or a variable.
Alternatively, MEDIAN can take an array of numbers in any argument.
Input Example:
Minimum (MIN
)
MIN
)Returns the smallest number from those provided.
Takes any number of arguments greater than 0.
Each argument must be a number or a variable.
Alternatively, MIN can take an array of numbers as an argument.
Input Example:
Minus (-
)
-
)Takes 1 or 2 arguments, yet the second argument always has to be there.
Both arguments have to be numbers or a variables.
Input Example:
For the minus operation to work correctly, it is necessary to use brackets to specify the desired order of the operations, e.g. write (1-1)-1
or (-3)*5
instead of merely 1 - 1 - 1
or -3*5
, respectively.
Modulo (MODULO
)
MODULO
)Returns the remainder of the division of two numbers. This function captures the remainder when the first argument is divided by the second, which can be useful in scenarios requiring evaluations based on divisibility or cyclic behavior.
Takes 2 arguments.
Both arguments must be numbers or variables.
Input Example:
Plus (+
)
+
)Takes 2 arguments.
Both arguments have to be numbers or a variables.
Input Example:
Power (POW
)
POW
)Returns an arbitrary power of an arbitrary number.
Takes 2 arguments.
Both arguments have to be numbers or a variables.
The first argument is the base, the second argument is the exponent.
Input Example:
Round (ROUND
)
ROUND
)Rounds a number to the closest number of the specified decimal place.
Takes 1 or 2 arguments.
The first argument is the number to be rounded.
The second (optional) specifies the number of decimal places (defaults to 0 if omitted and can be negative).
Input Example:
Round to Even (ROUNDE
)
ROUNDE
)The round-to-even method is used in engineering, finance, and computer science to reduce bias when you use rounded numbers to estimate sums and averages. The round-to-even method works like this:
If the difference between the number and the nearest integer is less than 0.5, round to the nearest integer. This familiar rule is used by many rounding methods.
If the difference between the number and the nearest integer is exactly 0.5, look at the integer part of the number. If the integer part is EVEN, round towards zero. If the integer part of the number is ODD, round away from zero. In either case, the rounded number is an even integer.
Summation (SUM
)
SUM
)Sums up numerical values.
Takes any number of arguments greater than 0.
Each argument must be a number or a variable.
Alternatively, SUM can take an array of numbers in any argument.
Input Example:
Times (*)
Performs multiplication between two numbers.
Takes 2 arguments.
Both arguments have to be numbers or a variables.
Input Example:
Combining Function Operators
You can combine basic operations to create more complex expressions using parentheses ()
. For example:
You can also use arithmetic operations in conjunction with other functions:
Last updated