辉_妞

 

C#中保留两位小数

 public static string GetString(double offset)
        {
            decimal val = decimal.Parse(offset);
            return val.ToString("0.00");
        }

posted on 2012-03-07 11:36  辉_妞  阅读(158)  评论(0编辑  收藏  举报

导航