Variable

Commodore BASIC variables can hold a string, an integer, or a number with a decimal fraction. Which data type is used is determined by a symbolic ending.

  • $ - string
  • (nothing) - integer
  • % - decimal fraction

Variable names are limited to two characters plus the symbolic ending:

ST
HE
NA$
KJ%
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution 2.5 License.