ABS macro
The ABS
macro
is available only in Unica Campaign.
Syntax
ABS(data)
Parameters
data
The
numerical values for which to compute the absolute value. This parameter
can be a constant value, a column, a cell range, or an expression
that evaluates to any of these types. For the format definition of data
,
see the "Macro Function Parameters" section in the chapter
in this guide for your product.
ABS
calculates the absolute value of the numbers in the specified data
range. The absolute value of a number is its value without its sign
(that is, positive numbers are unchanged; negative numbers are returned
as positive numbers). ABS
returns one new column
for each input column, each containing the absolute value of numbers
in the corresponding input column.
Examples
TEMP = ABS(-3) or TEMP = ABS(3) Creates
a column named |
TEMP = ABS(V1) Creates a column named |
TEMP = ABS(V1:V3) Creates three new columns
named |
TEMP = ABS(V1[10:20]) Creates a column named |
TEMP = ABS(V1[1:5]:V2) Creates two new columns
named |
Related functions
Function | Description |
---|---|
SIGN |
Computes the sign (positive or negative) of the values in the specified data range. |