BASIC commands
PROGRAMMING MANUAL
41
Revi
si
on 3.0
3.2
All BASIC commands
3.2.1
+ (Addition)
/i
3.2.2
- (Subtraction)
/i
3.2.3
* (Multiplication)
/i
3.2.4
/ (Division)
/i
Type
Mathematical function
Syntax
expre expression2
Description
The operator
+
adds two expressions.
Arguments
•
expression1
Any valid BASIC expression.
•
expression2
Any valid BASIC expression.
Example
result = 4 + 3
Assigns the value 7 to the variable
result
.
See also
N/A
Type
Mathematical function
Syntax
expression1 - expression2
Description
The operator
-
subtracts
expression2
from
expression1
.
Arguments
•
expression1
Any valid BASIC expression.
•
expression2
Any valid BASIC expression.
Example
result = 10 - 2
Assigns the value 8 to the variable
result
.
See also
N/A
Type
Mathematical function
Syntax
expression1 * expression2
Description
The operator
*
multiplies two expressions.
Arguments
•
expression1
Any valid BASIC expression.
•
expression2
Any valid BASIC expression.
Example
result = 3 * 7
Assigns the value 21 to the variable
result
.
See also
N/A
Type
Mathematical function
Syntax
expression1 / expression2
Description
The operator
/
divides
expression1
by
expression2
.
Arguments
•
expression1
Any valid BASIC expression.
•
expression2
Any valid BASIC expression.
Example
result = 11 / 4
Assigns the value 2.75 to the variable
result
.
See also
N/A
I52E-EN-03.book Seite 41 Freitag, 29. Juni 2007 11:55 11