ich habe eine Problem. Eine bestimmte Anweisung funktioniert nicht und ich weiß gerade nicht, warum. Könnt Ihr mir helfen?
Code: Alles auswählen
for y := 1 to StringGrid.RowCount-1 do
StingGrid1.Cells[6,y]:=FloatToStr(RoundTo(StrToFloat(StringGrid1.Cells[0,y])*StrToFloat(StringGrid1.Cells[4,y]) Div 100*(100+5) ,-2));
Als Fehlermeldung kommt bei der ersten Multiplikation:
Code: Alles auswählen
unit8.pas(64,88) Error: Incompatible types: got "Extended" expected "LongInt"