Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/15/2024 in all areas

  1. [ @Yelay12 ] --- First of all, what you want is modulo (%). t = 43.0 gg.alert(tostring(t % 2)) --- You need to understand that "DOUBLE" is floating-point number, thus you might need to convert it first into integer/non-precision number using "tonumber()" t = 43.2 gg.alert(tostring(tonumber(t) % 2)) --- Using "tonumber()" isn't really necessary, you can directly calculate it. Mine works: gg.searchNumber(43, gg.TYPE_DOUBLE) t = gg.getResults(1) if t ~= nil then gg.alert(tostring(t[1].value % 2)) end ---
    1 point
  2. 1 point
  3. 1 point
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.