INT(nexp)
LEN(s.exp)
LN(nexp)
LOWER(s.exp)
MEMORY(
)
MONTH(nexp)
PIO
RAD(nexp)
INSTR(main,sub)
main:
=
s.exp
sub:= s.exp
This finds the t"st occurrence of sub within main and returns the position
of the first character of sub
in
main.
It
will return a
value
of zero if
no
match
is
found. The
m"tch
is
case-dependent.
i
nst
r
("January",
"Jan")
!returns
1)
instr(IIJanuary","an")
(returns
2}
ins
t r
(/I
Jan
ua r
y"
,
II
AN"
)
[returns
OJ
Returns the integer
vatue
of the number, by truncating at the decimal
point. The truncation always operates towards
zero.
Thus;
i
nt
(3.7)
[returns
3)
int(-4.8)
[returns-4]
Returns the
number
of characters
in
the specified
text.
Returns the natural,
or
base
e,
logarithm of n.exp. An error results if
n.exp
is
negative
or
zero,
since logarithms are not defined
in
this range.
Converts the specified text
to
lower case.
Returns the
number
of unused bytes of
memory
remaining.
Returns, as
text,
the name of a month.
For example monlh(3) returns the
text
"March';
If
an argument larger than
12
is used,
it
is replaced by the remainder
after division by
12
so that. for example, month(13) and month(1) will
both
give the result 'January':
NUM(value,
Width)
value>
nexp
width>
nexp
Converts the given numeric
value
to the equivalent
tex1
string, in integer
format. The text
is
justified right
in
a field of width characters. For
example:
num(1.23e1,10) returns the
text"
12" (with 8 leading spaces).
NUMFLD([
lin
J)
Returns the number of fields
in
the records of the specified
file
(or the
current file if you
do
not give a logical file name).
Returns the
value
of the mathematical constant
7t.
Takes
an angle, measured
in
degrees, and converts
it
to
the same angle
in
radians.
RECNUM([
Ifn
J)
Returns the number (counting from zero
at
the t"st record) of the current
record of the speCitied file (or the current file
If
you
do
not
give
a logical
file name).
REPT(s.exp,nexp)
This function returns a string consisting of a
number
of copies of the
first character of the given
text.
The resulting text may
be
up
to
255
characters
in
length. For example,
Helerence
print
rept("*",S)
print
rept(ll
a
bc",3)
[will print five asterisks)
[prints "aaa")
SGN(nexp) Returns +1,
-1
or
0,
depending
on whether the argument is posilive,
negative
or
zero.
SIN(nexp) Returns the value of the sine of the specified (radian) angle.
SQR(nexp) Returns the square root of the argument. which must not
be
negative.
STR(n,type,dp)
n:
=
nexp
type: = n.exp
dp:=nexp
Converts a number, n, to the equivalent text string.
12184
51