title: How to get decimal values when the device is in french using NSNumber?
body: <p>I have an issue with the textfield. This case works fine with the english language. However, if the device language is change to french (canada) , the textfield is not showing the values after the decimal.</p>
  
  <p>For english:</p>
  
  <pre><code>  I enter 99.99 and click Done. The text field display 99.99
  </code></pre>
  
  <p>For french:</p>
  
  <pre><code> I enter 99,99 and click Done . The text field display 99,00
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>  _amountField.text = [_amountField currencyFormatFromValue:[NSNumber numberWithDouble:_amountField.text.doubleValue]];
  </code></pre>
  
  <p>Here the <code>[NSNumber numberWithDouble:_amountField.text.doubleValue]</code> part is returning 99.99 in case of english and 99,00 in case of french</p>
  
  <pre><code>-(NSString *)currencyFormatFromValue:(NSNumber *)value{
  
      NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
  
      formatter.positiveFormat = @"###.00";
      formatter.roundingMode = NSNumberFormatterRoundFloor;
      [formatter setNumberStyle:NSNumberFormatterCurrencyStyle];
      NSString *groupingSeparator = [[NSLocale currentLocale] objectForKey:NSLocaleGroupingSeparator];
      [formatter setGroupingSeparator:groupingSeparator];
      [formatter setUsesGroupingSeparator:YES];
      [formatter setCurrencySymbol:@""];
      [formatter setMinimumIntegerDigits:1];
      NSString *formattedValue = [formatter stringFromNumber:value];
  
      return formattedValue;
  }
  </code></pre>
  
  <p>I am not sure, why the french text which is converted in double is terminating the decimal values. Any ideas?</p>
  
  <p>Do I need to convert the text back to english before I sent the value to formatter?</p>