FACTORIAL macro
The FACTORIAL
macro
is available only in Unica Campaign.
Syntax
FACTORIAL(data)
Parameters
data
The
integer values to compute the factorial for. This can be a constant
value, a column, a cell range, or an expression evaluating to any
of the above, but must be greater than or equal to zero. For the format
definition of data
, see the "Macro Function
Parameters" section in the chapter in this guide for your product.
Description
FACTORIAL
calculates
the factorial of the values in the specified data range. All inputs
must be integers greater than or equal to zero. The factorial of an
integer less than or equal to one is one. For integers X ≥
2
, the factorial x! = x (x-1)(x-2)…(x -
(x-1)). FACTORIAL
returns one
new column for each input column, each containing the factorial of
numbers in the corresponding input column.
???
(floating-point
overflow error).Examples
TEMP = FACTORIAL(3) Creates a new column
named |
TEMP = FACTORIAL(-2) Generates an error 333, indicating that the argument must be greater than or equal to 0. |
TEMP = FACTORIAL(V1) Creates a new column
named |
TEMP = FACTORIAL(V1:V3) Creates three new
columns named |
TEMP = FACTORIAL(V1[10:20]) Creates a new
column named |
TEMP = FACTORIAL(V1[50:99]:V2) Creates
two new columns named |