Chawter
9
I
Introduction to
BASIC
Keywords
Functions
A function is a built-in subroutine. You may only use it as part
of
a statement. Most BASIC functions return numeric
or
string
data.
Function Description
ABS
ASC
ATN
CDBL
CHR$
CINT
cos
CSNG
CSRLIN
CVD
CVI
cvs
DATE$
ENVIRON$
EOF
ERDEV
ERDEV$
EXP
FIX
FRE
returns the absolute value
of
a number
returns the ASCII code
of
a
character.
returns the arctangent
of
a
number.
converts a number
to
double precision.
returns the character
of
an ASCII code.
converts a number to an integer.
returns the cosine
of
a number.
converts a number to single precision
returns the current
row
position
of
the
cursor.
restores data from a direct access disk
file
to
double precision.
restores data from a direct access disk
file
to
integer.
restores data from a direct access disk
file
to
single precision.
sets the date
or
returns the current date.
returns a string from BASIC’s Environ-
ment String Table.
checks
for
end-of-file or an empty commu-
nications input queue.
returns the value
of
a device error.
returns the name
of
a device
for
device
error.
returns the natural exponent
of
a
number.
truncates to a whole number.
returns the number
of
bytes in memory
not being used.
92