TAL Reference Manual
Expressions
TAL Reference Manual—526371-001
4-5
Arithmetic Expressions
Arithmetic Expressions
An arithmetic expression is a sequence of operands and arithmetic operators that
computes a single numeric value of a specific data type.
+ and -
are unary plus and minus operators applied to the leftmost operand of the
expression. If you do not use the unary plus or unary minus operator, the default is
unary plus.
operand
is a value in an arithmetic expression. Each operand consists of one or more of the
following syntactic elements. Each syntactic element represents a single value:
Variable
Constant
LITERAL
Function invocation
(expression)
Code space item
arithmetic-operator
is one of the following operators:
Signed arithmetic operator: +, -, *, /
Unsigned arithmetic operator: '+', '-', '*', '/', '\'
Logical operator: LOR, LAND, XOR
VST0402.vsd
operand
arithmetic - operator operand
+
-