Chapter 3 Programming the
VIC
20
Computer
63
Even using scientific notation there
is
a limit to the size of a number that
VIC BASIC can handle. The limits are
Largest floating point number: +
1.
70141183E+
38
Smallest floating point number: +2.93873588E-39
Any number
of
a larger magnitude will give an overflow error. The
following are examples
of
overflow errors:
1f':t::::
:~~f:~:
-l
Zr~~~~!fn~~;;~9J
READY.
1
?1.70141194E+39
?OVERFLOW
ERROR
READY.
?"'1.70141194£+39·)
?OVERFLOW
ERROR
No Overflow error
Overflow error
A number that
is
smaller
than
the smallest magnitude will yield a zero
result. This may be illustrated as follows:
INTEGERS
These numbers are acceptable
These numbers are too small;
they are replaced by 0
An integer
is
a number
that
has no fraction or decimal point. The
number can be negative
(-)
or
positive
(+).
An unsigned number
is
assumed to be positive. Because
of
the way in which they are stored in the