EasyManuals Logo

Sinclair QL User Manual

Sinclair QL
422 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #377 background imageLoading...
Page #377 background image
DAYS(s.exp)
EXP(n.exp)
FOUNDO
INKEYO
GETKEYO
Reference
50
You
must
first
have
set
the
system
clock,
as
described
in
the
SuperBASIC Keyword Guide.
Returns a number
of
days,
from the
first
of
January
1583,
to
a date
given as a text expression
of
the form ''YYYY/MM/DD': The conversion
assumes the Gregorian (modern) calendar
IS
being used.
The
formula
is
therefore only valid for dates after 1582.
DEC(
va/ue,dp,width)
value:
~(n.exp)
dp.~
(n.exp)
width.
~
(n.exp)
Converts the given numeric value
to
the
equivalent
text
string,
in
deCimal
format with
dp
deCimal places. The text
is
Justified
right
in
a field
of
width characters.
For
example:
dec(1.23e1,3,10) returns the text" 12.300" (with 4 leading spaces).
DEG(n.exp)
Takes
an
angle,
measured
in
radians,
and converts
it
to
the same angle
in
degrees.
EOF([
lin])
Returns a value Indicating whether
you
have attempted
to
read past
the end
of
the current
file,
or the specified file
if
a
file
identifier
is
given.
The value returned
is
1
if
you have attempted
to
read past the end
of
the
file,
otherwise
it
IS
zero.
ERRNUMO Returns the number
of
the
last
error which occurred (an error number
of
zero indicates no errors).
The
error number
is
the same
as
that
displayed together with the error message when Archive reports a
detected error
Returns the value
of
e (approximately
2.718)
raised
to
the power
of
(n.exp). The returned value
will
be
In
error
if
n.exp
is
greater than
+88
since the result
will
then exceed the numeric range
of
Archive.
FIELDN(n.expl.
Ilnl)
Returns the name of the specified field
in
the current record
of
the
specified
file
(or the current
file
if
no logical
file
name
is
given). Note
that fieldn(O) returns the name of the
first
field.
FIELDT(n.exp
[,
lin ])
Returns the type
of
the specified field
in
the current record
of
the
specified
file
(or
the current
file
if
no logical file name
is
given). Note
that fieldl(O) returns the type
of
the
first
field.
It
returns the value 0
If
the field
is
numeric, otherwise
it
returns
1.
FIELDV(n.exp[, lin
j)
Returns the value
of
the specified field
In
the current record
of
the
specified
file
(or
the current file
if
no logical
file
name
is
given). Note
that fieldv(O) returns the value
of
the
first
field. .
Returns one
if
a record
is
found by use
of
search or find, otherwise
returns
zero.
GEN(value,width)
value: =n.exp
width.=n.exp
Converts the given numeric value
to
the equivalent
text
string,
in
general
format. The text
is
Justified
right
in
a field
of
width characters.
For
example:
gen(1.23e1,10)
returns the
text"
12.3"
(with 6 leading spaces).
Walts
for a
key
to
be pressed and returns a
Single
text character which
corresponds
to
the
key
that
was
pressed.
Returns the single text character corresponding
to
any
key
that
was
being pressed
at
the time the function
is
called.
It
does not wait for
a keypress, but
will
return a null string (
""
)
if
no
key
is
pressed.
12/84

Other manuals for Sinclair QL

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sinclair QL and is the answer not in the manual?

Sinclair QL Specifications

General IconGeneral
ProcessorMotorola 68008
Clock Speed7.5 MHz
RAM128 KB (expandable to 640 KB)
ROM48 KB
Operating SystemSinclair QDOS
Release Year1984
StorageMicrodrive tape loop
Graphics256x256 pixels, 8 colors
PortsRS-232, ROM cartridge
SoundBeeper (internal speaker)

Related product manuals