G gzccjz Unregistered / Unconfirmed GUEST, unregistred user! 2009-07-07 #1 输入小数12.18到 edit1.text如何将它赋值给real型的mun 变量?num:=strtofloat(edit1.text) ------出错
D de410 Unregistered / Unconfirmed GUEST, unregistred user! 2009-07-07 #2 兄弟是不是空值转换啊?如果不是空值或者字符,是不会出错的~~
G gzccjz Unregistered / Unconfirmed GUEST, unregistred user! 2009-07-07 #3 不是空值.我原数是12.15 转换后为1.5827093546e+269
R ranyang Unregistered / Unconfirmed GUEST, unregistred user! 2009-07-13 #7 在转换之前记得校验你输入的正确性!学学正则表达式~~http://unibetter.com/deerchao/zhengzhe-biaodashi-jiaocheng-se.htm
G guanyue7613 Unregistered / Unconfirmed GUEST, unregistred user! 2009-07-13 #8 [red] 代码: num:=strtofloat(trim(edit1.text))[/red]