462 47 Error messages If the computer is unable to proceed for some reason then it will report the fact to you by printing an error message on the screen. The printing of the message can be suppressed by an ON ERROR statement – for example ON ERROR PROCerror ON ERROR may be followed by any statement or multiple statement. As well as the error message, the computer sets two variables each time an error occurs. ERR gives the error number. ERL gives the number of the line in the program where the error occurred. REPORT is a command to print the last error message.
For example ON ERROR REPORT:PRINT" at line ";ERL:END will give the same response that the computer gives without an ON ERROR statement. The error messages are listed below in alphabetical order together with their error numbers. Accuracy lost 23 If you try to calculate trigonometric functions with very large angles you are liable to lose a great deal of accuracy in reducing the angle to the range of plus or minus PI radians. In this case the computer will report Accuracy lost, eg PRINT SIN(10000000) Arguments 31 This error indicates that their are too many or too few arguments for a given function or procedure.
Array 14 This indicates that the computer thinks that an array is to be accessed but does not know the array in question. Bad call 30 This indicates that the use of PROC or FN to call a defined procedure or function is incorrect.