Operator not applicable to this operand type
var bzzl,tzl,jzl:string;
begin
jzl:=bzzl-tzl;
end
实际bzzl=10.23,tzl=3.13jzl:=10.23-3.13=7.1
但字符串怎么能相减呢,怎么办
var bzzl,tzl,jzl:string;
begin
jzl:=bzzl-tzl;
end
实际bzzl=10.23,tzl=3.13jzl:=10.23-3.13=7.1
但字符串怎么能相减呢,怎么办
begin
jzl:=FloatToStr(StrToFloat(bzzl)-StrToFloat(tzl));
end