An addendum to the number types: variable typing is determined when you declare them with VAR. You use a suffix character at the end of the name. VAR A$ would be a string, VAR A% would be int and VAR A# is double. No suffix defaults to double, unless you set OPTION DEFINT in which case it defaults to int (I recommend just always using suffixes)