TRS-SO
MODEL III
Addition
The + operatoris the symbol for addition. The addition
is
done with the precision
of
the more precise operand (the less precise operand
is
converted).
Forexample, when one operand is integer type and the other
is
single-precision, the
integeris converted to single-precision and four-byte addition
is
done. When one
operand is single-precision and the other
is
double-precision, the single-precision
numberis converted to double-precision and eight-byte addition is done.
Examples:
PRINT
2+3
Integeraddition.
PRINT 3.1 + 3
Single-precision addition.
PRINT 1.2345678901234567 + 1
Double-precision addition.
Subtraction
The - operatoris the symbol for subtraction. As with addition, the operation is
done with the precision
of
the more precise operand (the less precise operand
is
converted).
Examples:
PRINT 33 -
11
Integersubtraction.
PRINT 33
11.1
Single-precision subtraction.
PRINT 12.345678901234567
11
Double-precision subtraction.
1/20