
7-6
Section
Details of BASIC Commands
223
tab
Syntax:
TAB
(<numerical expression>)
Description:
Function. Moves the cursor to a specified position on the terminal display in a
or
LPRINT
statement
Remarks:
<numerical expression> may be any integer expression with the valid range: [1…255]. Non-
integer expressions will be rounded. If the value of the numerical expression exceeds the number
of characters per line, then the value of the numerical expression will be divided by the number of
characters per line and the remainder will be used.
If the current cursor position is already beyond the specified tab position then the cursor will
move to the specified position on the next line.
Examples:
> 10 PRINT "H";TAB(0);"W"
> 20 PRINT "H";TAB(1);"W"
> 30 PRINT "H";TAB(2);"W"
> 40 PRINT "H";TAB(3);"W"
> 50 PRINT "HELL";TAB(4);"O"
> RUN
H
W
HW
H W
H
W
HELLO
See also:
SPC
tan
Syntax:
TAN
(<numerical expression>)
Description:
Function. Calculates the tangent of a numerical expression.
<numerical expression> may be any integer, single-precision floating point or double-precision
floating point.
The return type is single-precision floating point if the argument is of type integer or single-
precision floating point. If the argument is of type double-precision floating point then the return
type is also double-precision floating point.
Remarks:
Note:
1.
The argument should be specified in radians.
Examples:
> 10 A = 0.4
> 20
PRINT TAN
(A)
>
RUN
.422793
See also:
SIN
,
COS
time$
Syntax:
TIME
$ [= <time string expression>]
Description:
System variable. Returns the time of the internal clock or sets the time.
Remarks:
<time string expression> is an absolute time in the format “hh:mm:ss”. Where hh has a range
[00…23], mm has a range [00…59] and ss has a range [00…59]. If the <time string expression>
is not a valid time then an “ILLEGAL FUNCTION CALL” error (code B005) will occur.
If used on its own the
TIME
$ statement returns the current time of the system clock.
Examples:
TIME$ = “12:10:05”
See also:
DATE
$,
DAY
Содержание C200H-ASC11
Страница 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Страница 2: ...iv...
Страница 4: ...vi...