title: NSNumberformatter adding decimal places
body: <p>I export some floatvalues into a Textfile (JSONFormat) then import it again into my project. Weirdly, the NSNumberformatter takes the Strings and adds some random(?) decimal places on its own....</p>
  
  <p>This is what I get from NSLog:</p>
  
  <pre><code>[9697:207] f1 150.837296   -  f2 150,8373 
  [9697:207] f1 160.746902   -  f2 160,7469
  [9697:207] f1 150.242599   -  f2 150,2426
  [9697:207] f1 160.068893   -  f2 160,0689
  [9697:207] f1 149.451096   -  f2 149,4511
  [9697:207] f1 159.154205   -  f2 159,1542
  </code></pre>
  
  <p>As you can see, the values to the right are my input strings(f2) and the values to the left are my floats (f1).</p>
  
  <p>Heres my code:</p>
  
  <pre><code>NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
  [formatter setNumberStyle:NSNumberFormatterDecimalStyle];
  [formatter setDecimalSeparator:@","];
  
  float f1 = (float)[[formatter numberFromString:[mutableArray objectAtIndex:i]] floatValue];
  </code></pre>
  
  <p>Any ideas why this is happening?</p>