Divide ( / ), Exponentiation ( **), Multiply ( * ) – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual
Page 26: Subtract ( - ), Negation ( - )
Publication 1746-RM001A-US-P
3-4 Expressions and Operators
Divide ( / )
Use the Division operator to divide the first expression by the second expression.
Exponentiation ( **)
Use the Exponentiation operator to raise the first expression to the power of the
second expression. The maximum power to which you can raise a number is 255.
Multiply ( * )
Use the Multiplication operator to multiply the first expression by the second
expression.
Subtract ( - )
Use the Subtraction operator to subtract the second expression from the first
expression.
Negation ( - )
Use the Negation operator to change an expression from positive to negative.
Example
Result
>PRINT 100/5
20
Example
Result
>PRINT 2**3
8
Example
Result
>PRINT 3*3
9
Example
Result
>PRINT 9-6
3
Example
Result
>PRINT –(9+4)
–13