Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I fix this abbreviation script? Syntax error

Asked by
AbeTGT 4
3 years ago

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!

Answer this question