i hacked the game so you can buy clickers any time
it puts 0.5999 when you try to get 0.6
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?
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) |
[Please log in to post a comment]