It makes all variables that don't have a dollar sign (i.e. not a string) into integers. Integers have no decimal point, just plain ole numbers. Anything with a decimal is rounded up to the next whole number. It's just an easy way of making QBasic treat all number variables as whole numbers.
...
And that generally used to speed things up (because loop counters usually integers and Basic works faster with integers)
But you can define over types of variables with dim (like dim x as double) or use special symbols to denote type (x!, x#, x& and as was mentioned x$).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.