
GeoB
ASIC
Reference Manual
5.Standard Functions
5-4 TPS1100-Version
1.30
Examples:
Abs (-4.6) -> 4.6
Abs (5)
-> 5
5.1.2 Int - Integer part
Int(X)
yields the integer part of the expression
X
. The expression must be of a
numeric type (
Integer
,
Double
or its variations). The result is of type
Integer
.
Examples:
Int (5.2) -> 5
Int (5.8) -> 5
Int (-5.5) -> -5
5.1.3 Round - Round
Round(X)
yields the value of the expression
X
rounded to the nearest integer.
Values halfway between two integers are always rounded away from zero. The
expression must be of a numeric type (
Integer
,
Double
or its variations). The
result is of type
Integer
.
Examples:
Round (5.2)
-> 5
Round (5.8) -> 6
Round (5.5)
-> 6
Round (6.5) -> 7
Round (-5.2) -> -5
Round (-5.8) -> -6
Round (-5.5) -> -6
Round (-6.5) -> -7
5.1.4 Sgn - Sign
Sgn(X)
yields the sign of the value of the expression
X
. Positive values yield +1,
negative values -1, and a zero value yields 0. The expression must be of a numeric
type (
Integer
,
Double
or its variations). The result is of type
Integer
.
Содержание 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 ...