@webref jsonobject:method @brief Put a key/float pair in the JSONObject @param key a key string @param value the value to assign @throws RuntimeException If the key is null or if the number is NaN or infinite. @see JSONObject#setInt(String, int) @see JSONObject#setString(String, String) @see JSONObj
(String key, float value)
| 1212 | * @see JSONObject#setBoolean(String, boolean) |
| 1213 | */ |
| 1214 | public JSONObject setFloat(String key, float value) { |
| 1215 | this.put(key, Double.valueOf(value)); |
| 1216 | return this; |
| 1217 | } |
| 1218 | |
| 1219 | |
| 1220 | /** |