title: Objective-c convert Long and float to String
body: <p>I need to convert two numbers to string in Objective-C.</p>
  
  <p>One is a long number and the other is a float.</p>
  
  <p>I searched on the internet for a solution and everyone uses <code>stringWithFormat:</code> but I can't make it work.</p>
  
  <p>I try </p>
  
  <pre><code>NSString *myString = [NSString stringWithFormat: @"%f", floatValue]
  </code></pre>
  
  <p>for <strong>12345678.1234</strong> and get <strong>"12345678.00000"</strong> as output</p>
  
  <p>and </p>
  
  <pre><code>NSString *myString = [NSString stringWithFormat: @"%d", longValue]
  </code></pre>
  
  <p>Can somebody show me how to use stringWithFormat: correctly?</p>