Arithmetic Operators

Applicable only to Execution, considering assignment operators.
Operator |
Description |
Columns |
||
1 |
2 |
3 |
||
+ |
Sum of value in field 1st Expression with value in field 2nd Expression. |
|
x |
|
+= |
Sum of value in field 2nd Expression to variable in field 1st Expression. |
x |
x |
|
++ |
Sums 1 to variable that is in field 1st Expression. |
x |
x |
|
- |
Subtracts the value of field 2nd Expression of field 1st Expression. |
|
x |
|
-= |
Subtracts the value of field 2nd Expression from variable that is in field 1st Expression. |
x |
x |
|
-- |
Subtracts 1 from variable that is in field 1st Expression. |
x |
x |
|
* |
Multiplies value in field 1st Expression for value in field 2nd Expression. |
|
x |
|
*= |
Multiplies the value of field 2nd Expression to variable that is in field 1st Expression. |
x |
x |
|
/ |
Divides value in field 1st Expression to value in field 2nd Expression. |
|
x |
|
/= |
Divides value of field 2nd Expression to variable of field 1st Expression. |
x |
x |
|
^ ** |
Calculates the exponential |
|
x |
|
:= |
Assigns value of field 2nd Expression to variable of field 1st Expression. |
x |
x |
|
% |
Calculates the module, that is, the rest of the division between fields 2nd Expression and 1st Expression. |
|
x |
|
Example:
Type |
Result |
Operator 1 |
1st Expression |
Operator 2 |
2nd Expression |
Operator 3 |
Execution |
nValtTot |
:= |
nVal |
:= |
0 |
.END. |
Execution |
nValTot |
:= |
nVal |
+ |
SRA->RA_SALARIO |
.END. |
Condition |
|
|
CTipDep |
== |
2 |
.END. |
Bond |
|
|
cTipDep==2 |
.NOT. |
|
.END. |