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)
| 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 |
no test coverage detected