LET
Defining a variable of various types.
string
Defining a string and using the variable
Example
DEF test$="kytschBASIC is rubbish!"
LET test$="kytschBASIC is awesome!"
PRINT test$
Output
kytschBASIC is awesome!
integer
Defining an integer and using the variable
Example
DEF test%=0
LET test%=1337
PRINT test%
Output
1337
double
Defining a double and using the variable
Example
DEF test#=0
LET test#=1337.11
PRINT test#
Output
1337.11
double to two decimal places
Filtering a double to two decimal places
Example
DEF test#=TWODP(1234.5678)
LET test#=TWODP(1337.1337)
LINE BREAK
REM or do it on the PRINT
PRINT TWODP(test#)
PRINT test#
Output
1337.13