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

Method getFloat

core/src/processing/data/Table.java:3243–3254  ·  view source on GitHub ↗

Get a float value from the specified row and column. If the value is null or not parseable as a float, the "missing" value is returned. By default, this is Float.NaN, but can be controlled with setMissingFloat(). @webref table:method @brief Get a float value from the specified row and column @param

(int row, int column)

Source from the content-addressed store, hash-verified

3241 * @see Table#setString(int, int, String)
3242 */
3243 public float getFloat(int row, int column) {
3244 checkBounds(row, column);
3245 if (columnTypes[column] == FLOAT) {
3246 float[] floatData = (float[]) columns[column];
3247 return floatData[row];
3248 }
3249 String str = getString(row, column);
3250 if (str == null || str.equals(missingString)) {
3251 return missingFloat;
3252 }
3253 return PApplet.parseFloat(str, missingFloat);
3254 }
3255
3256 /**
3257 * @param columnName title of the column to reference

Callers 6

getFloatColumnMethod · 0.95
getFloatRowMethod · 0.95
getStringMethod · 0.95
compareMethod · 0.95
createSubsetMethod · 0.95
getMaxFloatMethod · 0.95

Calls 5

checkBoundsMethod · 0.95
getStringMethod · 0.95
parseFloatMethod · 0.95
getColumnIndexMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected