Modül:Nüfus
local tbl = {}
local function format_int(number) local i, j, minus, int, fraction = tostring(number):find('([-]?)(%d+)([. ]?%d*)') -- reverse the int-string and append a comma to all blocks of 3 digits int = int:reverse():gsub("(%d%d%d)", "%1. ") if int:sub(-1) == '.