13, TYPE MISMATCH

Commodore Amiga

Severity: Minor

What it means

Amiga BASIC error 13.
Commodore's manual: a string variable name is assigned a numeric value or vice versa, or a function that expects a numeric argument is given a string argument or vice versa.
SWAP with a single and a double precision value also gives it.

Affected Models

  • Amiga computers with Amiga BASIC, written by Microsoft for Commodore

How to Fix It

  1. Check the names: a string variable ends with a dollar sign.

  2. Use VAL to turn text into a number, and STR$ to turn a number into text.

  3. SWAP: use two variables of the same type.