D dawnsoft Unregistered / Unconfirmed GUEST, unregistred user! 2004-05-14 #1 如 20% 转为浮点型(即0.2)。用什么函数?
H hnxx2003 Unregistered / Unconfirmed GUEST, unregistred user! 2004-05-14 #3 自己写个函数吧; pos(str,'%'); copy(1,1,length(str)-1); i:=strtoint(str)/100;
绵 绵绵细雨 Unregistered / Unconfirmed GUEST, unregistred user! 2004-05-14 #4 ilen:=length(str); sTmp:=copy(str,1,ilen-1); f:=StrToFloat(sTmp)/100.0;
B bjdribllec Unregistered / Unconfirmed GUEST, unregistred user! 2004-05-14 #5 dstr:='20%'; f:=0.01*StrToFloat(copy(dstr,1,pos('%',dstr)-1));