![]() | Description |
---|---|
An arithmetic term is an ASM term that evaluates to an arbitrary value (string, integer, float, boolean, model element). |
![]() | Syntax |
---|---|
ArithmeticTermAST ::= MultArithmeticTermAST | ArithmeticTermAST + MultArithmeticTermAST | ArithmeticTermAST - MultArithmeticTermAST
An arithmetic term is composed of
multiplicative arithmetic terms
with an arithmetic add |
![]() | Semantics | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
The arithmetic term evaluation is defined in Table 2.6, “Add (
The interpretation of operators
Applying the
If any operation has an Table 2.6. Add (
Table 2.7. Subtract (
|
![]() | Warning |
---|---|
Note that the evaluation rules of arithmetic operators changed in the new release to be compliant with its use in Java. |
Remark. There is no implicit type casting on the input of the operands; conversion operators have to be used if casting is required.
Defined In: term
Used By: base logical term