如题

解决方案 »

  1.   

    我是这样写的
    round(you*100)/100
      

  2.   

    Round不是通常的四舍五入可以在DelphiBox或CSDN上找到方法的http://lysoft.7u7.net
      

  3.   

    用之前处理一下 判断   ceil(4.5)=5 //  floor(2.3)=2  
     if ceil(t)-t>=0.5 then
       t:=ceil(t)
     else 
       t:=floor(t);
      

  4.   

    支持 lwk_hlj(阿凯(向双星努力))
      

  5.   

    Trunc(No+0.5);
    类似这样的....
      

  6.   

    uses math;
    RoundTo();
    中国方式的四舍五入
      

  7.   

    先use MAth;
    roundto(小数,-3)小数点后保留三位 如roundto(123.1232,-2)=123.12
    roundto( 数,2)  roundto(1234,2)=1200;
      

  8.   

    roundto不是真正的四舍五入,它应该叫做:四舍六入五求偶.
    那位能告诉我一个真实用的吗.我自己也写了一个,但是当末尾数是9时,则有入位时,就计算错误了,且现在客户非常急,所以没有时间再自己写.