Get a value from an index as a float. JSON uses 'double' values internally, so this is simply getDouble() cast to a float. @webref jsonarray:method @brief Gets the float value associated with an index @param index must be between 0 and length() - 1 @see JSONArray#getInt(int) @see JSONArray#getStrin
(int index)
| 397 | * @see JSONArray#getBoolean(int) |
| 398 | */ |
| 399 | public float getFloat(int index) { |
| 400 | return (float) getDouble(index); |
| 401 | } |
| 402 | |
| 403 | |
| 404 | public float getFloat(int index, float defaultValue) { |
no test coverage detected