org.json.JSONObject.getLong给出了不精确的结果

You*_*jae 2 java android json type-conversion long-integer

长转换的精度错误

在android中,我们可以看到附图,我从服务器收到的json是"id = -705156352446547 2446 ",但代码jsonObject.getLong("id")为-705156352446547 2512.

我可以看到每个getLong转换都有不精确的结果(或丢失精度?)在最后4位数.有什么我错过的吗?

我的设置:java 1.6.0_41,Android 4.1.2,IntelliJ 12 IDE.

You*_*jae 5

Long.parseLong(jsonObject.getString("id")) 给出精确的结果.