S sh2 Unregistered / Unconfirmed GUEST, unregistred user! 2000-06-19 #1 比如: a:String; begin a:='1.01'; 将a转换成数字变量!
C Calvin Unregistered / Unconfirmed GUEST, unregistred user! 2000-06-19 #2 procedure TForm1.Button1Click(Sender: TObject); var s:String; f:Real; Code:Integer; begin s:=Edit1.Text; Val(s,f,Code); if Code=0 then Edit2.Text:=FloatToStr(f); end;
procedure TForm1.Button1Click(Sender: TObject); var s:String; f:Real; Code:Integer; begin s:=Edit1.Text; Val(s,f,Code); if Code=0 then Edit2.Text:=FloatToStr(f); end;
F foxntbk Unregistered / Unconfirmed GUEST, unregistred user! 2000-06-19 #3 b : real; begin a:='1.01'; b := strtofloat(a); end;
B boy_zyz Unregistered / Unconfirmed GUEST, unregistred user! 2000-06-19 #4 strtofloat(a) strtoint(a) strto...
K K Unregistered / Unconfirmed GUEST, unregistred user! 2000-06-19 #8 "将a转换成数字变量!" 他是不是要将字符变量a转换成实型或整型变量
G garden_wood Unregistered / Unconfirmed GUEST, unregistred user! 2000-06-21 #10 查strto开头的函数就可以找到一大堆。 以后要是碰类型转换的问题,就查以该类型名开头的函数,多半能找到