So i want to do one thing in the future. I wanna round a number to the nearest thousand. I did this test that doesnt work. Help?
local x = 567 local a = 567 / 1000 local rounded = math.floor(a) print (rounded * 1000)
for some reason it rounds downwards
local number = 567 local rounded = math.floor(number/1000+0.5)*1000 print(rounded)