EasyManua.ls Logo

AMSTRAD CPC464 - Page 170

AMSTRAD CPC464
249 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...
ROUND
ROUND (<numeric expression>[,<integer expression>])
10 x=0.123456789
20 FOR r=9 TO 0 STEP -1:PRINT r,ROUND(x,r):NEXT
25 x=123456789
30 FOR r=0 TO -9 STEP 1
40 PRINT r,ROUND (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, ABS
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

Table of Contents

Other manuals for AMSTRAD CPC464

Related product manuals