8-134Trio BASIC Commands
Mathematical Operations and Commands
Trio Motion Technology
* Multiply
Type:
Arithmetic operation
Syntax
<expression1> * <expression2>
Description:
Multiplies expression1 by expression2
Parameters:
Example:
factor=10*(2.1+9)
Trio BASIC evaluates the brackets first giving the value 11.1 and then multiplies this
by 10. Therefore factor holds the value 111
/ Divide
Type:
Arithmetic operation
Syntax
<expression1> / <expression2>
Description:
Divides expression1 by expression2
Parameters:
Example:
a=10/(2.1+9)
Trio BASIC evaluates the parentheses first giving the value 11.1 and then divides 10
by this number
Therefore a holds the value 0.9009
Expression1:
Any valid Trio BASIC expression
Expression2:
Any valid Trio BASIC expression
Expression1:
Any valid Trio BASIC expression
Expression2:
Any valid Trio BASIC expression