... StringGrid3.Cells[i, j]:=FloatToStrf(C[j, i], fffixed,2,1); if StringGrid3.Cells[i, j]='' then StringGrid3.Cells[i, j]:='0';