How to convert string into float value in android
android, java
Solution
String s = e1.getText().toString();
Float f= Float.parseFloat(s);
Problem
Possible Duplicate: String from EditText to float In application I want to convert the entered string in edit box to the corresponding value like `233243664376347845.89` to corresponding float value. But it returns like IE10 after some number for example `23324366IE10` Please help me. My code is - ``` NumberFormat format = NumberFormat.getInstance(Locale.US); try { number = format.parse(e1.getText().toString()); } catch (ParseException e) { // TODO Auto-generated catch block e.printStackTrace(); } ``` The edit text length is greater then 20 digits,also i want to minus two edit text float values...