使用floattostr转换浮点数到字符串时,首先转换为extended类型,生成的字符串会有多余的小数,这个问题如何解决??
例如:
f1:float;
s1:string;
f1:=1456.01245;
s1:=floattostr(f1);
这时s1='1456.01245777188',如何让s1='1456.01245',不要说用format,要能够自动判断小数点后的位数.