Maths And Numbers


GameMaker Studio 2 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:

  1. Date And Time
  2. Number Functions
  3. Vectors
  4. Matrix Functions

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

Constant Value
true 1
false 0 (although any value less than 1 will also evaluate as false)
pi 3.141592653589793280etc... (the exact value will depend on various factors like platform being built for)