Multiplication
The *operatoris the symbol for multiplication. Once again, the operation is done
with the precision
of
the more precise operand (the less precise operand is
converted).
Examples:
PRINT 33 *
11
Integer multiplication.
PR
INT 33 *
11
.1
Single-precision multiplication.
PRINT 12.345678901234567 *
11
Double-precision multiplication.
Division
The/ symbol is used to indicate ordinary division. Both operands are converted to
single
or
double-precision, depending on their original precision:
•
If
eitheroperand is double-precision, then both are converted to
double-precision and eight-byte division
is
performed.
•
If
neitheroperand is double-precision, then both are converted to
single-precision and four-byte division is performed.
Examples:
PRINT 3/4
Single-precision division.
PRINT
3.8/4
Single-Precision division.
PRINT 3/1.2345678901234567
Double-precision division.
1/21