Код:
r:=strtofloat(StringGrid1.Cells[i,j]);
if (r=pr) then
begin
result:=strtofloat(StringGrid1.Cells[i,1])+strtofloat(StringGrid1.Cells[1,j]);
end
и
Код:
if (strtofloat(StringGrid1.Cells[i,j])=pr) then
begin
result:=strtofloat(StringGrid1.Cells[i,1])+strtofloat(StringGrid1.Cells[1,j]);
end
оператор if работает по разному для этих вроде одинаковых значений.... почему???