Integer

An integer represents a whole number. An integer number can be positive, negative, or zero. It cannot contain a decimal part. Typical examples are 1, 2345, -23652 and 0.

You can also represent integers hexadecimal, that is, in base 16. To do this you have to precede your number with a dollar-sign ($). For example $FF represents 255, while $A1 represents 161.

Game Maker makes no difference between an integer and a real. They are stored in exactly the same way. If you use a real value as an argument for a function that requires an integer value it is rounded to the nearest integer.