mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
return null on getString() for NaN values
This commit is contained in:
@@ -2984,11 +2984,19 @@ public class Table {
|
||||
return missingString;
|
||||
}
|
||||
return columnCategories[column].key(cat);
|
||||
} else {
|
||||
return String.valueOf(Array.get(columns[column], row));
|
||||
} else if (columnTypes[column] == FLOAT) {
|
||||
if (Float.isNaN(getFloat(row, column))) {
|
||||
return null;
|
||||
}
|
||||
} else if (columnTypes[column] == DOUBLE) {
|
||||
if (Double.isNaN(getFloat(row, column))) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return String.valueOf(Array.get(columns[column], row));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param columnName title of the column to reference
|
||||
*/
|
||||
@@ -3443,9 +3451,9 @@ public class Table {
|
||||
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
|
||||
|
||||
|
||||
public void replaceAll(String orig, String replacement) {
|
||||
public void replaceAll(String regex, String replacement) {
|
||||
for (int col = 0; col < columns.length; col++) {
|
||||
replaceAll(orig, replacement, col);
|
||||
replaceAll(regex, replacement, col);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
0229 core (3.0a2)
|
||||
X add copy() method to Table
|
||||
|
||||
_ need a better method for "missing" data in Table
|
||||
_ if missing int is zero, can't just remove those values from saving a table
|
||||
_ but for NaN values, it's a necessity
|
||||
|
||||
|
||||
pulls
|
||||
X implement A and a (elliptical arcs)
|
||||
|
||||
Reference in New Issue
Block a user