title: %d format specifier in Objective-C
body: <p>Well, I have the following code:</p>
  
  <pre><code>{
      int alfa = CC_RADIANS_TO_DEGREES(atan2(normalized.y, -normalized.x)) + 180;
      NSString * counting = [NSString stringWithFormat:@"fdfg%d.png", alfa];
  }
  </code></pre>
  
  <p><code>int alfa</code> brings a number between <code>0</code> and <code>360</code>.</p>
  
  <p>What I am trying to achieve is that <code>counting</code> string value is equal to a image file, i have 360 image files, all with this format <code>"fdfg0000.png" "fdfg0024.png" "fdfg0360.png</code>", increasing from 0 to 360, and so on...</p>
  
  <p>the <code>%d</code> operator is not reading the value, because all the zeros leading the file name are already outputted by the program that creates them, without a chance to modify them, I have renamed 360 files manually to this format : <code>"fdfg1.png"</code> <code>"fdfg24.png"</code> <code>"fdfg340.png"</code>, and thats the format that %d reads properly.</p>
  
  <p>So my question is, is there anyway to read  all the four zeros that the original file includes in a operator function?</p>
  
  <p>Or does anyone know a way to rename 360 files automatically?</p>