5, ILLEGAL FUNCTION CALL

Commodore Amiga

Severity: Minor

What 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

  1. Print the values that go into the function, just before that line.

  2. Check for the square root of a negative number, or a logarithm of zero or less.

  3. Check for a negative subscript.