EasyManua.ls Logo

WILLTEK 4403 - Oct; Val

WILLTEK 4403
484 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 RAPID!
Functions
WCDMA Options Version 6.20
187
OCT
OCT$
VAL
Syntax
OCT(string$)
Parameters
string$ is a string expression, containing a valid octal
representation of an integer number.
Description
Returns the decimal representation of an octal expres-
sion contained in
string$.
The value returned will be an integer number.
Examples
LET i=OCT("15") assigns ‘13’ to variable i.
Syntax
OCT$(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 octal 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 a$=OCT$(254, 6) assigns "000376" to variable
a$.
Syntax
VAL(string$)
Parameters
string$ is a string expression, containing a valid
numeric representation of a decimal figure like "-1.4" or
"3E+5"
Description
Converts a decimal number contained in
string$ to
that decimal number.
If the string does not contain a valid decimal number, ‘0’
will be returned.
Examples
i = VAL("1.234") assigns ‘1.234’ to variable i
To avoid runtime errors due to typing errors with an
INPUT command, first a string is read in that is later
converted into the decimal representation of the figure
entered.
INPUT "Please enter channel number:" _
, channelno$
channelno = VAL(channelno$)

Table of Contents

Other manuals for WILLTEK 4403

Related product manuals