def int_comma(value):
	"""
	Converts an integer to a string containing commas every three digits
	"""
	val_str = str(value)
	split = val_str.split(".")
	val_int = split[0]
	
	try:
		val_point = "." + split[1]
	except IndexError:
		val_point = ""

	val_list = []
	for count, i in enumerate(reversed(val_int)):
		val_list.append(i)
		if (count+1) % 3 == 0:
			if len(val_int) == (count + 1):
				break
			else:
				val_list.append(",")
			
	val_list.reverse()
		
	final = "".join(val_list)
	final += val_point
	return final