🤑 Indie game store🙌 Free games😂 Fun games😨 Horror games
👷 Game development🎨 Assets📚 Comics
🎉 Sales🎁 Bundles

Can i declare a luna variable as integer like in C? I thought that the script interprets all values as float


Well that was enlighting. Thanks!

https://www.lua.org/pil/2.3.html

You can't declare integer, but you can operate with variables like with integers using regular arithmetic operators: + - * % except /

Lua has special floor division operator // for such cases. The result of x = a // b is always integer value.

https://www.lua.org/manual/5.3/manual.html#3.4.1

Ok. I get it. Thanks!