[Kst] [Bug 106008] NaN values should not be skipped while importing
data from ASCII file
Andrew Walker
arwalker at sumusltd.com
Thu Jun 23 01:00:34 CEST 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=106008
------- Additional Comments From arwalker sumusltd com 2005-06-23 01:00 -------
SVN commit 428063 by arwalker:
CCMAIL:106008 bugs kde org Interpret text strings as NaN instead of 0.0 with no appreciable increase in read time of data
M +6 -0 ascii.cpp
--- trunk/extragear/graphics/kst/kst/datasources/ascii/ascii.cpp #428062:428063
@ -414,6 +414,9 @
i_col++;
if (i_col == col) {
v[i] = atof(_tmpBuf + ch);
+ if (v[i] == 0.0 && !isdigit(_tmpBuf[ch])) {
+ v[i] = atof("NaN");
+ }
break;
}
}
@ -441,6 +444,9 @
i_col++;
if (i_col == col) {
v[i] = atof(_tmpBuf + ch);
+ if (v[i] == 0.0 && !isdigit(_tmpBuf[ch])) {
+ v[i] = atof("NaN");
+ }
break;
}
}
More information about the Kst
mailing list