c#如何精确到小数点两位?

1、Math.Round(a,2)

2、a.ToString( "0.00 ");

3、Decimal   dec=0.225;
    Decimal.format(dec,2)

 

posted on 2011-04-12 14:13  jameshappy  阅读(1407)  评论(0编辑  收藏  举报