MCPcopy Index your code
hub / github.com/processing/processing / getFloat

Method getFloat

core/src/processing/data/JSONArray.java:399–401  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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) {

Callers 1

getFloatArrayMethod · 0.95

Calls 1

getDoubleMethod · 0.95

Tested by

no test coverage detected