
7-6
Section
Details of BASIC Commands
220
spc
Syntax:
SPC
(<numerical expression>)
Description:
Function. Outputs blanks in a
or
LPRINT
statement
<numerical expression> may be any integer expression with a valid range: [0…255].
Non-integer expressions will be rounded. If the expression is negative, 0 will be assumed.
This function is used to output blanks in a
or
LPRINT
statement. If the number of blanks
exceeds the terminal’s line width, the output will wrap around to the next line.
Remarks:
Note:
1.
SPC
must be used in conjunction with a
or
LPRINT
statement. It cannot be used
on its own.
2.
If the numerical expression is greater than 255 then an “ILLEGAL FUNCTION
CALL” error (code B005) will result.
Examples:
> 10 PRINT "HELLO";"WORLD"
> 20 PRINT "HELLO";SPC(5);"WORLD"
> RUN
HELLOWORLD
HELLO
WORLD
See also:
TAB
sqr
Syntax:
SQR
(<numerical expression>)
Description:
Function. Calculates the square root of numerical expression.
Remarks:
<numerical expression> may be any integer, single-precision floating point or double-precision
floating point expression. If <numerical expression> is negative then an “ILLEGAL FUNCTION
CALL” error (code B005) will result.
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.
Examples:
> 10 A = 4
> 20 PRINT SQR(A)
> RUN
2
See also:
Summary of Contents for C200H-ASC11
Page 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Page 2: ...iv...
Page 4: ...vi...