我有一些由集合返回的字段,如
2.4200 2.0044 2.0000
我想要像这样的结果
2.42 2.0044 2
我尝试使用String.Format,但它返回2.0000,并且将其设置为N0也会对其他值进行舍入。
String.Format
2.0000
N0
https://stackoverflow.com/questions/4525854
相似问题