EasyManua.ls Logo

Commodore 128 - Page 346

Commodore 128
448 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RWINDOW
Returns the size of the current window
RWINDOW (n)
When n equals:
0 RWINDOW returns the number of lines in the current
window.
1 RWINDOW returns the number of rows in the current
window.
2 RWINDOW returns either of the values 40 or 80,
depending on the current screen output format you are
using.
The counterpart of the RWINDOW function is the WINDOW
command.
EXAMPLE:
10 WINDOW 1,1,10,10
20 PRINT RWINDOW(0);RWINDOW(1);RWINDOW(2)
RUN
9 9 40
This example returns the number of lines (9) and columns (9) in
the current window. This example assumes you are displaying
the window in 40 column format.
SGN
Return sign of argument X
SGN(X)
This function returns the sign,(positive, negative or zero) of X. The
result is +1 if X > 0, 0 if X = 0, and -1 if X < 0.
EXAMPLE:
PRINT SGN(4.5);SGN(0);SGN(-2.3)
1 0 -1
18-18

Table of Contents

Other manuals for Commodore 128

Related product manuals