Game Maker

Apparently anything more intense than a multiplication or a division and it becomes an ugly function

power(x,n)

So it would be

power(2,24)

So when I drop in an old GameMaker Studio 1.4 project and do

draw_text(10, 80, string(power(2,24)));

It prints 16777216 at the 10,80 coordinate

Capture

Note: did not care about typing and just let Game Maker do its thing. Can you even declare types in Game Maker?

1 Like

In almost all interpreted programming languages you can use 2**4 as an exponent operator. In most C based languages you can’t.

2 Likes

Privacy & Terms