AMSTRAD CPC464 User Manual page 146

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

Advertisement

ERROR
E R R O R < i n t e g e r e x p r e s s i o n >
E R R O R 1 7
COMMAND: Take Error action with a given error number. The error may be one already used and
recognised by BASIC (Appendix VIII), in which case the action taken is the same as would be taken
if such an error had been detected by BASIC.
Error numbers beyond those recognised by BASIC may be used by the program to signal its own
errors.
Associatedkeywords: ON
E R R O R , E R R , E R L
EVERY
E V E R Y
< i n t e g e r
e xp r e s s i o n > [ , < i n t e g e r
e x p r e s s i o n > ]
G O S U B
< l i n e
n u m b e r >
E V E R Y 5 0 0 , 2 G O S U B 50
COMMAND: The CPC464 maintains a real time clock. The EVERY command allows a BASIC
program to arrange for subroutines to be called at regular intervals. Four delay timers are available,
specified by the 2nd <integer expression> in the range 0....3 each of which may have a subroutine
associated with it. See also Chapter 10.
Associated keywords: A F T E R , R E M A I N
EXP
E X P ( < n u m e r i c e x p r e s s i o n > )
P R I N T E X P ( 6 . 8 7 6 )
9 6 8 . 7 4 3 6 2 5
FUNCTION: Calculates ' E' to the power given in numeric expression - where ' E' is approximately
2.7182818 - the number whose natural logarithm is 1.
Associated keywords: LOG
FIX
F I X ( < n u m e r i c e x p r e s s i o n > )
P R I N T F I X ( 9 . 9 9 9 9 9 )
9
FUNCTION: Unlike C I N T , F I X merely removes the part of the numeric expression, to the right of
the decimal point, and leaves an integer result, rounding towards zero.
Associated keywords: C I N T , I N T , R O U N D

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents