在ActiveReport中,在Detail中单价会默认地加上 .00, 例如: 2000.00 this
若是我但愿能作到自动省略后面的0,例如:
2000 --> 显示 2000
2000.45 --> 显示 2000.45 orm
实现上面的显示,能够利用的代码下:
this.textBox1.Value = 2000.00; this.textBox1.OutputFormat = "#,##0"; this.textBox4.Value = 2000.45; this.textBox4.OutputFormat = "#,##0";