How to give a less specific number?

Whenever I play tycoons I notice that on the cash collector, where it says how much cash you can collect, it never says a specific number, it always says something like 1.5k or 5k, how would I do that instead of it being a specific number like 5812?

1 Like

You can round numbers down like so:

local x = 5812

print(tostring(math.floor(x / 100) / 10) .. "k") --> 5.8k
1 Like