Calculation Results - Sanyo MBC-550 Series User Manual

Table of Contents

Advertisement

CALCULATION RESULTS
The type of calculation results are as follows:
Calculations by + , - and * are executed to match the
high order type (order if a single precision real
number is higher than the order of an integer, and the
order of a double precision real number is higher
still), and the results of the calculations are of the
corresponding type.
However, when the results of calculations of an integer
are outside the integer range, the results are of the
single precision real type.
For calculations by ~ and /, an integer is converted to
the single precision real type, and then calculations
are executed to match the high order type.
The results
are of the corresponding type.
Calculations by relational operators are executed to
match the high order type, and the results are of the
integer type.
Calculations by \,MOD, and logical operators are
executed after conversion to the integer type, and the
results are of the integer type.
3-31

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents