Order Of Precedence - Sanyo MBC-550 Series User Manual

Table of Contents

Advertisement

The operation of an arithmetic expression is performed
in the following order according to its priority as
shown below.
Sequence, hence, is important.
Order of Precedence:
Calculations enclosed in parenthesis are
always evaluated first and have the highest
precedence.
Power calculation or exponentiation.
Minus sign or negation.
Multiplication and division.
Integer division.
Remainder.
Addition and subtraction.
1.
2.
3.
5.
6.
7.
The calculations which have the same operational
priority are performed from left to right.
Example
>10 A = 2*(2+1)*2/3+1-2
>20 PRINT A
>RUN
3
3-20

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents