The - symbol was not printed since you are printing a positive integer (i2 is greater than zero) and when the comma symbol is used to format the numbers, typically comma separates group of 3 digits from the RHS. Thus, 1234567 will be printed as 1,234,567