Round; Run (String Expression); Run (Line Number) - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

ROUND
R 0 U N D ( <numeric expression, [ , <decimals,])
10 FOR n=4 TO -4 STEP-1
20 PRINT ROUND (1234.5678,n),
30 PRINT "with integer expression";n
40 NEXT
run
FUNCTION: Rounds the <numeric expression, to a number of decimal places or
power often specified in the <decimals, parameter. If <decimals, is less than zero, the
<numeric expression, is rounded to give an absolute integer with <decimals, number
of zeros before the decimal point.
Associated keywords: AB S, Cl N T, F I X, IN T
RUN
RUN <string expression,
RUN "disc"
COMMAND: Loads a BASIC or binary program from disc and commences execution.
Any previously loaded BASIC program is cleared from the memory.
Protected BASIC programs may be run directly in this manner, ..
Associated keywords: LOA D
RUN
RUN [<line number,]
RUN 200
COMMAND: Commences execution of the current BASIC program, from the
specified <line number, parameter, or from the beginning of the program if the
parameter is omitted. RUN resets the value of all current program variables to zero or
null.
Protected programs may NOT be run in this manner, after loading.
Associated keywords: CON T, END, S TOP
Chapter 3 Page 70
Complete List of Keywords

Advertisement

Table of Contents
loading

Table of Contents