AMSTRAD CPC464 User Manual page 170

Cpc464 colour personal computer 64k
Hide thumbs Also See for CPC464:
Table of Contents

Advertisement

ROUND
R O U N D ( <n u m e r i c e x p r e s s i o n > [, < i n t e g e r e x p r e s s i o n > ] )
1 0 x = 0 . 1 2 3 4 5 6 7 8 9
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
2 5 x = 1 2 3 4 5 6 7 8 9
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: INT, FIX, CINT, AB S
RUN
RUN <s t r i n g e x p r e s s i o n >
R U N " W E L C O M E "
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
R U N [ < l i n e n u m b e r > ]
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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents