Real

A real is any number in GM. A real number can be positive, negative or zero. It can contain a decimal part and even an exponent.

Assignment
Assigning a real number to a variable is simply a case of writing the name of the variable followed by an equals-sign (=) and then the value you want the variable to be assigned to.

variable=50.42 variable=-20 variable=5e3 //this is equal to 5*10^3=5000 variable=5E3 //same as above

Hexidecimal
GM also allows you to write a number in base 16 (hexidecimal). To do this you have to precede your number with a dollar-sign ($).

variable=$A //this is equal to 10 variable=$FF //equal to 255

Technical
The "real" type in GML is the only number type. It is a double-precision (64-bit) signed float, and corresponds to the "double" type in many other languages.