ERROR
ERROR <integer expression>
ERROR 17
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 ERROR, ERR, ERL
EVERY
EVERY <integer expression>[,<integer expression>] GOSUB <line
number>
EVERY 500,2 GOSUB 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: AFTER, REMAIN
EXP
EXP(<numeric expression>)
PRINT EXP(6.876)
968.743625
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
FIX(<numeric expression>)
PRINT FIX(9.99999)
9
FUNCTION: Unlike CINT, FIX 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: CINT, INT, ROUND