I have to get the number from France-number-style string: @"30.000,00" When I use NSNumberFormattern to parse
NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init];
NSNumber *priceNumberValue = [numberFormatter numberFromString:@30.000"];
It returned 30, my expected return is 30000 I try to use other options
NSLocale *vnLocale = [[NSLocale alloc] initWithLocaleIdentifier:@"fr_FR"];
[numberFormatter setLocale:vnLocale];
or
[numberFormatter setDecimalSeparator:@","];
but it still returns unexpected value: 30
What is the correct way for me to tell the NSNumberFormatter parse @"30.000,00"?