# Game Maker: is 08 the same as 8 in arrays?

if I make an array A_[01], can I refer to it later with A_[1]?

I am asking because I am not sure if this is the reason why I am getting some bugs.

• I never used game maker, but in many programming languages, prefixing a number with a 0 means it's in octal format. – Philipp Dec 18 '16 at 23:32
• Actually a valid question, some languages could treat such statement as hashmap with string keys... in which case there would be difference. – wondra Dec 18 '16 at 23:35
• Yes, it's same. – Dmi7ry Dec 19 '16 at 6:39

The documentation makes no mention of octal literals, which is where 0 might be a prefix, and it doesn't make any mention of binary literal values. This documentation page mentions the only hexadecimal format relates to the $ character which is used for color values. Note that you can also create colours from their hexadecimal value using the "$" symbol beforehand
This leads me to conclude that if the GML parser reads a prefixed 0 as a real number, 02 should be equivalent to 2. You can test this theory by printing the result of 02 == 2, or put 02 into a variable and print the value, if it prints out as 2 it might be parsed as a real number. Note that I use 2 instead of 1 because if there is a binary literal somehow it won't translate.