Math Rules
Most of these rules return a numerical value from operators having one or many numerical operands. When one operand is missing or invalid, the result is missing.
FormatNumerical
Returns a string formatted version of a numerical value, with given minimum digit number before separator and given precision after separator.
Example
Sum
Sum of numerical values.
Minus
Opposite value.
Diff
Difference between two numerical values.
Product
Product of numerical values.
Divide
Ratio of two numerical values.
Index
Integer index related to the line number of the current record from a data file (start at 1).
Random
Random number between 0 and 1.
Each time a database is read, the random seed is forced to the same value, such that the sequence of random numbers will be the same.
Note that the Random rule can be used several times in dictionaries, resulting in independent sequences of random numbers.
Round
Closest integer value.
Floor
Largest previous integer value.
Ceil
Smallest following integer value.
Abs
Absolute value.
Sign
Sign of a numerical value.
Returns 1 for values greater or equal than 0, -1 for values less than 0.
Mod
Returns value1 mod value2. Precisely, value1 – value2 * Floor(value1/value2)
.
Log
Natural logarithm.
Exp
Exponential value.
Power
Power function.
Sqrt
Square root function.
Sin
Sine function.
Cos
Cosine function.
Tan
Tangent function.
ASin
Arc-sine function.
ACos
Arc-cosine function.
ATan
Arc-tangent function.
Pi
Pi constant.
Mean
Mean of numerical values.
StdDev
Standard deviation of numerical values.
Min
Min of numerical values (among non-missing values).
Max
Max of numerical values (among non-missing values).
ArgMin
Index of the min value in a numerical series. The index starts at 1 and relates to the first value that is equal to the min.
ArgMax
Index of the max value in a numerical series. The index starts at 1 and relates to the first value that is equal to the max.