Use %i to format integers rather than %.0f.