--[[
	
	\\\ Turn any number (even bigger than 2^47) into a number string w/ commas
	Functions.Commas(
		number,					<-- |REQ|	Any number.
	)
	
--]]



return function(n)
	--- Remove scientific notation
	n = tostring(string.format("%18.0f", tonumber(n) or 0))
	
	--- Convert to commas
	n = (tostring(n):reverse():gsub("(%d%d%d)", "%1,"):reverse()..(tostring(n):match("%.%d+") or "")):gsub("^,", "")
	
	--- Cleanup
	n = string.gsub(n, "%s+", "")
	n = string.sub(n, (string.sub(n, 0, 1) == "," and 2 or 0))
	
	--
	return n
end
