It is very important that the data matches the data type of the variable. If the data does not match the data type then a type mismatch occurs.
If the computer is expecting an integer and gets a floating-point number, the computer will round.
Also, if a variable’s name is a typo and does not match the variable’s name that was made, the computer will make a new variable with incorrect name. This new variable will be initialized as zero (0).
Code Download
QBT5_1.BAS
QBT5_2.BAS
QBT5_3.BAS
QBT5_4.BAS
QBT5_5.BAS
QBT5_6.BAS
QBT5_7.BAS
QBT5_8.BAS
QB64 is a free download at www.qb64.com
QB64 Wiki & Manual is found at qb64.com/wiki.html
QBasic 1.1 comes with OldDOS. A zip file of OldDOS can be found at www.pcxt-micro.com/download.html
QBasic 1.1 needs DOSBox to run on Windows Vista and greater, Mac, and Linux.
DosBox is a free download at www.dosbox.com
Free QB64/QBasic Code
QBasic.Net - www.qbasic.net
Pete's QBasic Site - www.petesqbsite.com/index.php
QB45 - qb45.org
Phatcode - games.phatcode.net