I have an array from JSON like below :
"lodg": [82015372.06, 0, 0, 82015372.06, 82486446.4401653]
I can't get the real value 82015372.06
. I try some code like below :
Double integer = obj.getJSONArray("lodg").getDouble(3); // 8.201537206E7
Long value = Double.valueOf(integer).longValue(); //82015372
float fl = (float) obj.getJSONArray("lodg").getDouble(3); //8.2015376E7
I read questions regarding this but it does not work. I need to get the value, not only just print out.