BASIC
Single- or
double-precision to integer type
BASIC
returns
the largest integer that is not greater
than the original value.
Note: The
original value must be greater than or equal to
-32768
,
and less
than 32768.
Examples
A%=
-10.5
Assigns
A%
the
value
-11.
A%
=
32767.9
Assigns A% the value 32767.
A%
=
2.5D3
Assigns A% the value 2500.
A%
=
-
1 23.45678901 234578
Assigns A% the value
-124.
A%
=
-32768.1
Produces an
Overflow Error (out of integer range)
.
Integer to
single-
or
double-precision
No error is introduced.
The converted value looks like the original value with zeros
to the right of the decimal place
.
Examples
A#
=
32767
Stores 32767.000000000000 in A#.
A!=-1234
Stores -1234.000 in A!.
109