local p = function p.formatNum(frame) local str = string.sub(frame.args[1], #frame.args[1] - 2, #frame.args[1]) local temp = " " .. string.sub(frame.args[1], 1, #frame.args[1] -3) for i = 0, #frame.args[1] - 3, 3 do str = string.sub(temp, #temp - 2 - i, #temp - i) .. frame.args[2] .. str end return strendreturn p