This set of Ruleset Actions deals with numeric data types, such as integers, floating-point numbers, and more.
Video: See the Cleo Community Videos on conditioning a rule using Numeric Actions and an example of using Actions to aggregate data for populate message data.
Absolute
Determines the absolute value of a number (Factor1); allows for specifying Rounding Decimal Positions.
Property | Type | Description |
---|---|---|
Factor1 | Number | First number. |
RoundingDecimalPositions | Number | Rounds the result "Half Up" if roundingDecimalPositions is not null and >= 0.
An example would be rounding 0.745 to 0.75 |
Add
Adds a number (Addend1) to another number (Addend2); allows for specifying Rounding Decimal Positions.
CreateNumberFromStringWithLocale
Converts a string value (Source Value) formatted by a language tag (Source Locale) to a numeric value.
Example: A Source Value of "123.45“ and a Source Locale of "nl-NL" (Netherlands) returns 12345
CreateStringFromNumberWithLocale
Converts a numeric value (Source Value) formatted by a language tag (Target Locale) to a string value.
Example: A Source Value of 123.45 and a Target Locale of "nl-NL" (Netherlands) returns "123,45“
DivideRoundDown
Divides a number (Dividend) by another number (Divisor); allows for specifying Rounding Decimal Positions.
DivideRoundHalfUp
Divides a number (Dividend) by another number (Divisor); allows for specifying Rounding Decimal Positions.
Exponentiate
Raises the value of a number (Factor1) by the value of another number (Exponent).
GreaterThan
Determines if a number (numberA) is greater than another number (numberB) and returns a Boolean value.
GreaterThanOrEquals
Determines if a number (numberA) is greater than or equal to another number (numberB) and returns a Boolean value.
LessThan
Determines if a number (numberA) is less than another number (numberB) and returns a Boolean value
LessThanOrEquals.
Max
Determines the maximum value of two numbers (Number1 and Number2).
Min
Determines the minimum value of two numbers (Number1 and Number2).
Multiply
Multiplies two numbers (Factor1 and Factor2); allows for specifying Rounding Decimal Positions.
Negate
Returns the negated value of a number (Factor1); allows for specifying Rounding Decimal Positions.
NumberEquals
Determines if two numbers (SourceNumber1 and SourceNumber2) are equal and returns a Boolean value.
NumberNotEquals
Determines if two numbers (SourceNumber1 and SourceNumber2) are not equal and returns a Boolean value.
NumberToString
Creates a string value of a number (Number); allows for PaddingDigits and CountSign; CountSign defaults to a Boolean value of true, which includes a minus sign in the PaddingDigits.
Remainder
Determines the remainder when dividing a number (Addend1) by another number (Addend2); allows for specifying Rounding Decimal Positions.
Subtract
Subtracts a number (Addend2) from another number (Addend1); allows for specifying Rounding Decimal Positions.
Comments
0 comments
Please sign in to leave a comment.