Chapter 6 RAPID!
Functions
186 WCDMA Options Version 6.20
CINT
HEX
HEX$
Description
Returns a string containing the binary representation of
aNumber. In case, aNumber is not an integer, the deci-
mals will be truncated (that means no rounding will take
place).
When
digits is stated, the string will be filled up with
zeros (0) to the left.
Examples
LET b$=BIN$(126, 8) assigns "01111110" to vari-
able
b$.
Syntax
CINT(aNumber)
Parameters
aNumber is a valid numeric expression.
Description
Converts a numeric expression to the related integer fig-
ure, using commercial rounding.
Examples
i = CINT(1.49) assigns ‘1’ to variable i.
j = CINT(1.50) assigns ‘2’ to variable j.
Syntax
HEX(string$)
Parameters
string$ is a string expression, containing a valid hexa-
decimal representation of an integer number.
Description
Returns the decimal representation of a hexadecimal
expression contained in
string$.
The value returned will be an integer number.
Examples
LET i=HEX("FF") assigns ‘255’ to variable i.
Syntax
HEX$(aNumber [, digits ])
Parameters
aNumber is a valid numeric expression,
digits is a numeric expression, resulting in a positive
integer.
Description
Returns a string containing the hexadecimal representa-
tion of
aNumber. In case, aNumber is not an integer, the
decimals will be truncated (that means no rounding will
take place).
When
digits is stated, the string will be filled up with
zeros (0) to the left.
Examples
LET a$=HEX$(254, 4) assigns "00FE" to variable
a$.