We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi,
I have a code which get data from the CSV. file. There should be few empty or string among the floats. How can I test it? I use Table object to handle the data. If I get data from the table (getFloat, getInt or similar) there is a chance to get an error. How can I test without error?
Thank you.
Answers
Table class defines these fields to represent missing or non-parsable values:
https://GitHub.com/processing/processing/blob/master/core/src/processing/data/Table.java#L73
If another missing value is preferable over any of those defaults, we can change them respectively w/:
setMissingString(), setMissingInt(), setMissingLong(), setMissingFloat(), setMissingDouble()
For example:
table.setMissingInt(MIN_INT);
Then: *-:)