I have a fairly simple problem. I am getting real-number input like6.03, but that gives me errors. If I change it to 6,03, it\'s ok. I, however, can\'t
6.03
6,03
You're probably running into Locale issues. You can use java.text.NumberFormat for parsing.
NumberFormat format = NumberFormat.getInstance(Locale.US); Number number = format.parse("6.03"); double d = number.doubleValue();