【发布时间】:2012-05-15 07:49:30
【问题描述】:
我想在应用除法后对列值进行四舍五入:
DataColumn maxSpend = new DataColumn();
maxSpend.DataType = System.Type.GetType("System.Double");
maxSpend.Expression = string.Format("{0:0.00} / price", this.maxSpend);
有可能以某种方式在列表达式中使用 Math.floor() 还是有其他解决方案?
【问题讨论】:
-
您是否要在此处将 this.maxSpend 除以价格 string.Format("{0:0.00} / price", this.maxSpend);
标签: c# datacolumn