decimal a=1.11;
decimal b=2.22;
decimal c=a*b;
decimal d = System.Decimal.Round(c, 2);
c Decimal 对象
2是精确到小数位位数....
c#中怎样使decimal类型变量保留固定小数位?
最新推荐文章于 2024-12-04 17:36:19 发布
decimal a=1.11;
decimal b=2.22;
decimal c=a*b;
decimal d = System.Decimal.Round(c, 2);
c Decimal 对象
2是精确到小数位位数....