i hacked the game so you can buy clickers any time
it puts 0.5999 when you try to get 0.6
P#129107 2023-04-28 19:57
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
[Please log in to post a comment]