1
0

some sec fixes

This commit is contained in:
Debug_pro
2026-02-12 01:22:45 +03:00
parent 43d7845cf1
commit 72d7aa9575
4 changed files with 13 additions and 4 deletions

View File

@@ -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);
}
}