Skip to content Skip to sidebar Skip to footer

Converting From String To Double

I m try to convert my string value to double, the values i take it from server with web service, here is my code: private EditText lat; private EditText lng; i declare them as te

Solution 1:

Try this

Double lat=Double.parseDouble(lat.getText().toString());
Double longi=Double.parseDouble(lng.getText().toString());

Solution 2:

you can use this

Double.parseDouble(p); 

Solution 3:

you can try this like parsing the string into double :

Double lat = Double.parseDouble(you string value);

Solution 4:

You can try this way Double lat = Double.parseDouble("String");

Solution 5:

Using Double.parse() should solve your problem:

Double lat1=Double.parse(yourString) ;

Post a Comment for "Converting From String To Double"