J jack968 Unregistered / Unconfirmed GUEST, unregistred user! 2003-03-11 #1 请问 如 temp:string,我该如何将temp的值取出并转换为数值型?strtofloat(变量)?? 可它出错呀。
N netstone Unregistered / Unconfirmed GUEST, unregistred user! 2003-03-11 #2 var f:double; begin f:=strtofloat(temp); end; //如果temp的值是正常的浮点数就不会出错
N ning_ning Unregistered / Unconfirmed GUEST, unregistred user! 2003-03-11 #3 var f:double; begin try f:=strtofloat(temp); except f:=0; end; end;