Corticon Studio: Rule Language Guide
:
Rule operator details and examples
:
Absolute value
Try Corticon Now
Absolute value
SYNTAX
<Number>.absVal
DESCRIPTION
Returns the absolute value of <
Number
>. If the <
Number
> is positive, <
Number
> itself is returned; if <
Number
> is negative, the negation of <
Number
> is returned.
USAGE RESTRICTIONS
The Operators row in the table of
Summary Table of Vocabulary Usage Restriction
applies. No special exceptions.
RULESHEET EXAMPLE
This sample Rulesheet uses
.absVal
to produce the absolute value of
decimal2
and assign it to
decimal1
SAMPLE RULETEST
A sample Ruletest provides
decimal2
values for three different scenarios of
Entity1
. Input and Output panels are shown below.