title: Convert a number with a comma into a number with point. (Cocoa Touch)
body: <p>I'm trying to code a calculator with XCode, but then I saw that Numbers with a comma are just cutted of after the comma. </p>
  
  <p>I am getting the Numbers with this code out of the textfield.</p>
  
  <pre><code>-(IBAction)Additionbutton:(id)sender{
  
  NSString *firstString = field1.text;
  NSString *secondString = field2.text;
  float num1;
  float num2;
  float output;
  num1 = [firstString floatValue];
  num2 = [secondString floatValue];
  output = num1 + num2
  Solutionfield.text = [ [NSString alloc] initWithFormat:@"%.2f",output] ;
  </code></pre>
  
  <p>Is it possible to set the calculation that way, that it is able to handle points AND commas or do I have to convert them and if so, how can I do this?</p>
  
  <p>Thank you :)</p>