📅  最后修改于: 2022-03-11 14:49:02.195000             🧑  作者: Mango
代码示例1
var value = 1.23456M;
var shortenedValue = Convert.ToDecimal(value.ToString("0.###"));
Assert.Equals(shortenedValue, 1.234);
1234