数据库中显示的数据是12000.00(float类型),但是在程序中将其赋值给一个变量(也是float类型),结果却是另外一个值,不知道各位有没有遇到过这样的问题?
如:var mje:float;
    //数据库中"sjsh"为12000.00
    mje:=table1.fieldbyname('sjsh').asfloat;//此处mje得到的值却为12008.00?什么原因
    table1.edit;
    table1.fieldbyname('sjsh').asstring:=formatfloat('0.00',mje)+strtofloat(edit1.text);
    table1.post;