• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Gone over 64bit limit (Solved)

I have just stored a value in an array higher than the 64 bit integer value. i'm using this code to get the integers
Code:
for(i=0;i<limit;i+=1)
{
    var s = 1/4*i*sqrt(3);
    var s2 = pi * sqrt(2*i/3);
    value[i] = power(s,s2);
}
and the final number i stored (the largest one) was
72,121,472,430,254,189,000,000,000,000,000,000,000,000,000.00
which i got from doing draw_text(xx,yy,string(value));

How has the array stored that value as its way above the 32 and 64 bit interger limits

32 bit:
2,147,483,647

64 bit:
9,223,372,036,854,775,807
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
GameMaker only stores values as 64-bit integers when doing bitwise math. For floating point operation it stores them as 64-bit floating-point.
 
GameMaker only stores values as 64-bit integers when doing bitwise math. For floating point operation it stores them as 64-bit floating-point.
So the 64-bit floating point limit is higher than the number i got

EDIT:
I'm just really confused cuz i don't usually do this more complex mathematics so it has always gone to 2,147,483,647 then down to -2,147,483,647
 
Last edited:
So the 64-bit floating point limit is higher than the number i got

EDIT:
I'm just really confused cuz i don't usually do this more complex mathematics so it has always gone to 2,147,483,647 then down to -2,147,483,647
Ah okay i have just done some testing and yeah by putting .00 at the end of any number i can get it to equal incredibly large amounts, i guess the 64 bit floating limit is insane compared to the integer value, strange how that is but i'll go with it
Thanks yellow for the help
 
Top