Maths And Numbers

GameMaker contains a large number functions to deal with different areas of mathematics, numbers of all types and the date and time. Most of these functions can be found in the sections listed below:

 

There are a few built-in constants that also can be evaluated as real numbers (although you should always check for the constant rather than the value):

ConstantValue
true1 (although any value equal to or greater than 1 will evaluate as true)
false0 (although any value less than 1 will also evaluate as false)
pi3.141592653589793280... (the exact value will depend on various factors like the platform being targeted)