相关文章推荐
健身的抽屉  ·  sqlalchemy ...·  1 年前    · 
失恋的包子  ·  WPF ...·  1 年前    · 
引号 是字符串合并,属于字符串操作, 加减乘除 算式的话 := 两边必须是数值类型,比如 int、float 、double等 其中变量如果有界面输入或字符串变量,用楼上的 strtofloat转换,类似转换变量有:strtoint strtointdef strtofloat strtofloatdef f1,f2,f3:float; begin f1 := StrToFloatDef(Edit1.Text,0); f2 := StrToFloatDef(Edit2.Text,0); f3 := f1 * f2; Edit3.Text := Format('%f',[f3]); end;
...全文