U
Ulf Meinhardt
As well known a decimal can be written with decimal separators. E.g
1,234,567.89 (US format)
1.234.567,89 (European format)
How can I parse a String which contains such a inetger number into an int variable.
The parse statement should work with the US AND the european decimal separators.
String mystr = "1.234.567,89";
int myint = Integer.parseInt(mystr);
does not work. It runs into an exception.
Ulf
1,234,567.89 (US format)
1.234.567,89 (European format)
How can I parse a String which contains such a inetger number into an int variable.
The parse statement should work with the US AND the european decimal separators.
String mystr = "1.234.567,89";
int myint = Integer.parseInt(mystr);
does not work. It runs into an exception.
Ulf