some sec fixes
This commit is contained in:
@@ -79,7 +79,9 @@ namespace Lab
|
||||
{
|
||||
for (int col = 0; col < cols; col++)
|
||||
{
|
||||
array[row, col] = Convert.ToInt32(dt.Rows[row][col]);
|
||||
double num = (double)dt.Rows[row][col];
|
||||
num = double.IsInfinity(num) || double.IsNaN(num) ? 0 : num;
|
||||
array[row, col] = Convert.ToInt32(num);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user