📅  最后修改于: 2022-03-11 14:52:24.148000             🧑  作者: Mango
Double lat;
String lat_str = "17.456174";
try {
lat = Double.parseDouble(lat_str);
}catch (NumberFormatException e) {
//lat_string does not contain valid double value
}