I think this might be related to your issues

But I would simply just round the decimal places you need.
This utility function may help you to achieve this.

function round(num, numDecimalPlaces)
	local mult = 10^(numDecimalPlaces or 0)
	return math.floor(num * mult + 0.5) / mult
end
1 Like