ROUND
ROUND (<n u m e r i c expression>[, < i n t e g e r e x p r e s s i o n > ] )
10 x=0.123456789
2 0 F O R r = 9 T O 0 S T E P -1 : P R I N T r , R O U N D ( x , r ) : N E X T
25 x=123456789
3 0 F O R r = 0 T O -9 S T E P –1
4 0 P R I N T r , R O U N D ( x , r )
50 NEXT
FUNCTION: Rounds <numeric expression> to a number of decimal places or power of ten specified
in <integer expression>. If the <integer expression> is less than zero, then value is rounded to give
an absolute integer followed by a number of zeros determined by the <integer expression> before the
decimal point.
Associatedkeywords:
I N T , F I X , C I N T , AB S
RUN
RUN <string expression>
RUN "WELCOME"
COMMAND: Load a program from cassette and start executing it. If the string expression is empty
“” BASIC attempts to load and execute the first file it encounters on the tape, If the first character of
the string expression is
!
then the displayed cassette processing messages are suppressed.
NB: BASIC effectively executes an implied
NEW
immediately a <filename> is read on the tape.
Associated keywords:
LOAD
RUN
RUN [<line number>]
RUN 100
COMMAND: Starts executing the current program at the line specified, or from the beginning if no
line is specified. All current program, user functions and variables are deleted from memory.
DEFINT
,
DEFREAL
and
DEFSTR
settings are reset.
All cassette files are abandoned, and any buffered output is lost.
Associated keywords:
LOAD
Содержание CPC464
Страница 1: ......
Страница 32: ...or you can type 3e1 1e1 ENTER 300 2 3000x1000 Type 3e3 1e3 ENTER 3000000 3 3000x0 001 Type 3e3 1e 3 ENTER 3 ...
Страница 102: ...PRINT 10 AND 12 Results in 8 PRINT 10 AND 1000 Results in 8 again ...
Страница 118: ...TO DO DRAW THIS PAGE ...
Страница 219: ...actual value may be made to vary during the execution of a program ...
Страница 240: ...Text and WINDOW planner Mode 2 80 Columns ...
Страница 241: ......
Страница 245: ...Sound envelope Music planner sheet ...