Download Firmware Manual

Transcript
+
Addition Operator
Syntax:
Operator or Comparator
Operands:
none
Burn:
not burnable
Hardware:
All
Full Description
The + symbol is the addition operator. It takes as arguments any two values, variables, array elements, operands,
or At functions (@SIN[]) and returns a value equal to the sum of the arguments.
This is a binary operator (takes two arguments and returns one value).
Mathmatical operations are calculated left to right rather than multiplication and division calculations
performed prior to addition and subraction.
Example:
1+2*3 = 9;'
not 7
It is recommended that parenthesis be used when more than one mathmatical operation is combined in
one command.
Example:
var = ((10*30)+(60/30));'
evaluates as 302
var = 10*30+60/30;'
evalutes as 12
Arguments
m+m
where m is any value, variable, array element, operand, or At functions (@SIN[])
The result of this operation is a value, which is not valid on its own. It must be coupled with a command.
See examples below.
Operands
N/A
Usage
Usage and Default Details
Usage
Value
While Moving
Yes
In a Program
Yes
Command Line
Yes
Default Value
N/A
Related Commands