title: Simple question about int
body: <p>Ok.... This seems like a simple question but I can't find any info about it so I thought I would ask here.</p>
  
  <p>I am trying to store a number (int) in a var but I need to keep the 0's before it</p>
  
  <p>eg:</p>
  
  <pre><code>int x = 0001;
  NSLog(@"%i",x)  // returns 1
  </code></pre>
  
  <p>Is it possible to make it return 0001?</p>
  
  <p>I know that i can do this:</p>
  
  <pre><code>NSLog(@"%04i",x);  // returns 0001
  </code></pre>
  
  <p>But that is not quite the answer i am looking for because the number of 0's needs to vary.</p>
  
  <p>I don't specifically need to use an int but it would need to be a whole number.</p>