I have a string representing a number, and I want to convert it an NSInteger. The problem is, that the string is formatted with thousand separators:
"1,234"
when using [value intValue], I get 1 as the value.
Is it because it thinks the thousand separator is a decimal separator? (my locale uses comma as decimal separator and a space or a dot as thousand separator)
How can I ensure that I get the right number?
-Vegar