5, ILLEGAL FUNCTION CALL
Commodore Amiga
Severity: MinorWhat it means
Amiga BASIC error 5.
Commodore's manual: a parameter that is out of range is passed to a math or string function.
It may also occur as the result of a negative or unreasonably large subscript.
Affected Models
- Amiga computers with Amiga BASIC, written by Microsoft for Commodore
How to Fix It
-
Print the values that go into the function, just before that line.
-
Check for the square root of a negative number, or a logarithm of zero or less.
-
Check for a negative subscript.