
GeoB
ASIC
Reference Manual
5.Standard Functions
TPS1100-Version 1.30
5-7
5.3 NUMERIC TO STRING
5.3.1 Chr$ - Character from ASCII code
Chr$(N)
yields a string of length one, consisting of the character whose ASCII
code is the value of the expression
N
. The result is of type
string * 1
.
Example:
Chr$ (42) -> "*"
5.3.2 String$ - String from fill character
String$(N,X)
yields a string consisting of
N
identical characters. This
character is either the first character of the string expression
X
, or the character
whose ASCII code is the value of the integer expression
X
. The result is of type
String
.
Examples:
String$ (6, 42)
-> "******"
String$ (5, "/")
-> "/////"
String$ (4, "abc") -> "aaaa"
5.3.3 Str$ - String from a numerical value
Str$(X)
yields the string representing (in a fixed format) the value of the
expression
X
. The expression must be of a numeric type (
Integer
,
Double
or
its variations). The result is of type
string * n
, where n is the length of the
resulting string.
Examples:
Str$ (6)
-> "6"
Str$ (-5.88)
-> "-5.88"
Str$ (0.00000042) -> "4.2e-07"
Содержание 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 ...