TQuery控件fxtbl连接表TALBE
TABLE结构
(fxsl numeric(15,3),
xsdj numeric(15,2),
xsje numeric(15,2)
)
当我这样写
procedure Tfrmmain.fxtblfxslChange(Sender: TField);
begin
fxTBL.Edit;
fxTBLxsje.Value := fxTBLfxsl.AsFloat * fxTBLxsdj.Value;
end;
FXSL(数量)录入了6
fxTBLxsdj(单价)是12.85;本来fxTBLxsje.Value的结果应是77.1,但实际上去是77.09差了一分钱
这是怎么回事,该怎么解决?
TABLE结构
(fxsl numeric(15,3),
xsdj numeric(15,2),
xsje numeric(15,2)
)
当我这样写
procedure Tfrmmain.fxtblfxslChange(Sender: TField);
begin
fxTBL.Edit;
fxTBLxsje.Value := fxTBLfxsl.AsFloat * fxTBLxsdj.Value;
end;
FXSL(数量)录入了6
fxTBLxsdj(单价)是12.85;本来fxTBLxsje.Value的结果应是77.1,但实际上去是77.09差了一分钱
这是怎么回事,该怎么解决?
fxTBLxsje.AsCurrency := fxTBLfxsl.AsFloat * fxTBLxsdj.AsCurrency;