title: NSNumberFormatter works with decimal separator but not with comma separator
body: <p>I have been working on this for two days now. Time to consult stackoverflow.</p>
  
  <p>I have an iOS user setting that allows selection of the decimal and grouping separators. It works perfectly when the separator is a decimal point, but when set to a decimal comma all the numerical entries are automatically rounded to the nearest whole number and any calculations lose precision.</p>
  
  <p>The scheme is this:</p>
  
  <pre><code>//Use formatter to set decimal style for output
  NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
  [formatter setNumberStyle:NSNumberFormatterDecimalStyle];
  [formatter setMinimumFractionDigits:1];
  [formatter setMaximumFractionDigits:5];
  
  //Set number format from preferences
  NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
  NSString *numberFormat = [userDefaults stringForKey:kNumberFormat];
  if([numberFormat isEqualToString:@"Decimal Point"])
      {
      [formatter setDecimalSeparator:@"."];
      [formatter setGroupingSeparator:@","];
      }
  
      else
      {
      [formatter setDecimalSeparator:@","];
      [formatter setGroupingSeparator:@"."];
      }
  
  NSNumber *number = [NSNumber numberWithDouble: result];
  NSString* formattedResult = [formatter stringFromNumber:number];
  [display_ setText: [NSString stringWithFormat:@"%@", formattedResult]];
  [formatter release];
  </code></pre>
  
  <p>In decimal separator mode 5.5 + 5.5 = 11.0</p>
  
  <p>But, in comma separator mode 5.5 is immediately truncated to 5.0 in the display and 5.5 + 5.5 = 10.</p>
  
  <p>Not what I want!</p>