
GeoB
ASIC
Reference Manual
5.Standard Functions
5-6 TPS1100-Version
1.30
Examples:
InStr (3, "Bananas", "na") -> 3
InStr (4, "Bananas", "na") -> 5
InStr (6, "Bananas", "na") -> 0
5.2.3 Len - Length of a string
Len(S)
yields the length of the string expression
S
, i.e. the number of characters
in
S
(not counting the terminating zero). The result is of type
Integer
.
Examples:
Len ("Bananas")
-> 7
Len ("A + B = ") -> 8
Len ("")
-> 0
5.2.4 Val - Numerical value of a string
Val(S)
yields the value of the string expression
S
interpreted as a numeric
constant.
S
may contain leading blanks, one sign, a decimal point, and a power of
ten part with or without sign. Blanks within the number are not allowed.
Interpretation ends with the first character that cannot be part of a legal GeoB
ASIC
numeric constant representation. If
S
does not represent a number, the result of
Val(S)
is 0. The result is of always of type
Double
.
Examples:
Val ("1.5")
->
1.5
Val (" +7.3e-4") ->
0.00073
Val ("-2E5xyz")
-> -200000.0
Val ("X")
->
0.0
Val ("
-3")
->
-3.0
Содержание 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 ...