title: Converting String to float in ios
body: <p>Hello friends I Have a float type variable ,which contains a total price of specific item,so first I have converted into NSString..below is my code</p>
  
  <pre><code>float total;
  
  [grandTotal setText:[NSString stringWithFormat:**@"$%.2f"**,total]];
  </code></pre>
  
  <p>so here grandTotal is of type UILabel..where I want the total in the format which I have written in the code</p>
  
  <p>now again when i try to covert to do this</p>
  
  <pre><code>float previousTotal = [[grandTotal text] floatValue];
  </code></pre>
  
  <p>I am getting value of previousTotal = zero.</p>
  
  <p>So I think their is issue with $ sign how to solve this is issue..</p>