Skip to content

Hunt 3: Text and numbers

Text or number?

  • "3" is a STRING. 3 is an INTEGER. They act differently.
  • Join strings with &. Turn a number into a string with NUM_TO_STR.
Word Meaning
data type the kind of value: STRING, INTEGER, REAL, CHAR, BOOLEAN
convert change the type of a value
DECLARE Age : INTEGER
Age ← 3
OUTPUT "Age: " & NUM_TO_STR(Age)

Log in or create account

IGCSE, A-Level & AP