MCPcopy Index your code
hub / github.com/benfry/processing4 / getFloat

Method getFloat

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

Retrieves a float value from the Table 's specified row and column. The row is specified by its ID, while the column may be specified by either its ID or title. @webref table:method @webBrief Retrieves a float value from the Table 's specified row and column @param row ID number of the

(int row, int column)

Source from the content-addressed store, hash-verified

3296 * @see Table#setString(int, int, String)
3297 */
3298 public float getFloat(int row, int column) {
3299 checkBounds(row, column);
3300 if (columnTypes[column] == FLOAT) {
3301 float[] floatData = (float[]) columns[column];
3302 return floatData[row];
3303 }
3304 String str = getString(row, column);
3305 if (str == null || str.equals(missingString)) {
3306 return missingFloat;
3307 }
3308 return PApplet.parseFloat(str, missingFloat);
3309 }
3310
3311 /**
3312 * @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