Log In  

i hacked the game so you can buy clickers any time

Cart #bugsbugsbugs-2 | 2023-04-28 | Code ▽ | Embed ▽ | No License

it puts 0.5999 when you try to get 0.6

P#129107 2023-04-28 19:57

haha once you get above like 115 per second you can hold down X and C and still make a profit. also I somehow won even though I only had 16961 clicks?

P#129121 2023-04-29 01:55

Looks like an oddity with float precision, because adding 0.1 STARTING from 0.5 makes 0.6.
P8 or Lua doesn't have built in rounding, but something like this should work (In theory. I haven't tested it yet):

function round10(n)
  return flr((n + .05) * 10) / 10
end

xps = round10(xps + .1)
P#129141 2023-04-29 17:36

thanks for the idea, @Verb!

P#129164 2023-04-29 22:38 ( Edited 2023-04-29 22:41)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 21:04:43 | 0.032s | Q:22