title: How to convert a string to float?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3191034/convert-string-to-float-in-objective-c">Convert string to float in Objective-C</a>  </p>
  </blockquote>
  
  
  
  <p>I'd like to convert a string to a float.</p>
  
  <pre><code>/* dict is an NSDictionary to load Preferences */ 
  NSString *str = [dict objectForKey:@"key"];
  </code></pre>
  
  <p>This is where I got. Now I'd like to convert the string value (in this case <code>@"32.0f"</code>) in a float, where it could be processed by my application. How can I do this?</p>