I have a series of prices in a table that is calculated automatically based on an average health which leaves numbers such as 142, 174, 229, 4320.
for i, v in pairs(priceTbl) do
local avgHealth = (v["Health"][1] + v["Health"][2] + v["Health"][3])/3
v["Price"] = math.floor(avgHealth * 1.3)
end
How does one achieve making it so that when the raw price is calculated, it gets rounded to 50?

2 comments
https://scriptinghelpers.org/questions/4850/how-do-i-round-numbers-in-lua-answered
I believe this only rounds to the closest 1?