Game Development Reference
In-Depth Information
Integer variables
There are numerous different types of number variables. Integer variables , called Int
variables, can be positive or negative whole numbers—you cannot have a decimal at all.
So, you could put -1 as an integer variable but not 1.2.
Real variables
Real variables can be positive or negative, and they can be decimal numbers. A real vari-
able can be 1.0, -40.4, or 100.1, for instance.
There are other kinds of number variables as well. They are used in more specific situ-
ations. For the most part, integer and real variables are the ones you need to know—make
sure you don't get them mixed up. If you were to run an app with this kind of mismatch,
chances are it won't work.
Search WWH ::




Custom Search