
GeoBASIC Reference Manual
2.GeoBasic Constructs
TPS1100-Version 1.30
2-7
2.1.6 Numbers
Numeric constants are written in the usual way, i.e.
1.
integers
consist of digits only, and
2.
floating point numbers
of any type contain a decimal point and/or an exponent
part (so-called scientific notation or E-format). The exponent part consists of
the letter 'E' or 'e' followed by a – possibly signed – integer value.
Examples:
♦
Integer
integer meaning
0
0
4711
4711
49882
49882
0001
1
♦
Floating point
floating point
meaning
0.0
0.0
3.141593
3.141593
.25
0.25
6.
6.0
♦
Floating point (E-format)
floating point (E)
meaning
6E3
6000.0
7.2e-5
0.000072
.62e+3
620.0
3.E2
300.0
Note
Numbers without a comma are of type
Integer
, numbers with a
comma or
E
in it are of a floating point type. Hence
0
and
0.0
are of
different types.
Numbers which may get only positive values are not supported in
GeoB
ASIC
. Hence distance variables may get negative values also. The
programmer has to take care of that.
Содержание 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 ...