Hey there! Please help me fix this script:

local suffixes = {'','K','M','B','T','Qa','Qi','Sx','Sp','Oc','No','De','UDe','DDe','TDe','QtDe','QnDe','SxDe','SpDe','OcDe','NoDe','Vg','DVg','TVg','QtVg','QnVg','SxVg','SpVg','OcVg','NoVg','Tg'}

--//Math Variables//--

local function format(val)
	for i=1, #suffixes do
		if tonumber(val) < 10^(i3) then
			return math.floor(val/((10^((i-1)3))/100))/(100)..suffixes[i]
		end
	end
end

Apparently it gives me a Syntax error saying that it was an incomplete statement. Please help!