JSONObject myObject = new JSONObject("{ \"anyString\":\"Hello World\", \"aNumber\": 123, \"aDouble\": 12345678987.00 }");
float myFloatValue = BigDecimal.valueOf(myObject.getDouble("aDouble")).floatValue();
JSONObject myObject = new JSONObject("{ \"anyString\":\"Hello World\", \"aNumber\": 123, \"aDouble\": 12345678987.00 }");
float myFloatValue = BigDecimal.valueOf(myObject.getDouble("aDouble")).floatValue();