
GeoBASIC Reference Manual
2.GeoBasic Constructs
2-24 TPS1100-Version
1.30
2.5.1.2 Division (
/
):
Both operands must be of a numeric type (
Integer
,
Double
, or any of the
various specialities of
Double
). The result is always of type
Double
. If the
value of the denominator is zero, the division is not performed and an error results,
which will cause an enabled error handler to become active.
2.5.1.3 Integer division, remainder (
\.
,
mod
):
Both operands must be of type
Integer
, and the result is also of type
Integer
.
If the value of the denominator is zero, the division is not performed and an error
results, which will cause an enabled error handler to become active.
2.5.1.4 Exponentiation (
^
):
Both operands must be of a numeric type (
Integer
,
Double
, or any of the
various specialities of
Double
). The result is always of type
Double
. If the
exponent is
0
, the result is
1.0
for all values of the base. If the base is negative,
the exponent must have an integer value, otherwise a domain error occurs.
2.5.1.5 Relational operators (
=
,
<>
,
>
,
<
,
>=
,
<=
):
Both operands must be either of a numeric type (
Integer
,
Double
, or any of
the various specialities of
Double
), or both
Logical
, or both strings. The result
is always of type
Logical
.
For numerical operands, the relations are the usual. For logical operands,
FALSE
is less than
TRUE
. For strings, the ASCII code sequence is used, so that e.g. "
0
" <
"
1
" < "
A
" < "
Z
" < "
a
" < "
z
". Comparison of strings proceeds character by
character from left to right, and the first unequal pair determines which string is
less. Comparison also ends when an "end-of-string" is found; in this case, if both
strings are of the same length they are equal, otherwise the shorter is less than the
longer. Note that strings of different length can never be equal, but a shorter string
can be greater than a longer one.
2.5.1.6 Logical operations:
Содержание tps1100
Страница 1: ...GeoBASIC FOR TPS1100 User Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 150: ...GeoBASIC FOR TPS1100 Reference Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 411: ...GeoBASIC Reference Manual 6 System Functions TPS1100 Version 1 30 6 7 6 5 35 CSV_LibCallAvailable 6 213 ...
Страница 620: ...TPS1100 Version 2 10 6 1 ...
Страница 621: ......
Страница 623: ...TPS1100 Version 2 10 6 1 ...
Страница 624: ......
Страница 1053: ...TPS1100 Version 1 30 E 1 Appendix E GEOFONT ...
Страница 1154: ...GeoBASIC Reference Manual Appendix J List of Predefined Identifiers TPS1100 Version 1 30 J 9 TMC_SetOffsetDist 6 128 ...