Is there a good reason why you change `%-6d` to `%-6.0f` here?
I copied this example from a actual DAOPhot table (and I just checked the original table again) and that definitely says `%-6d` in the last format.