例如:1
double totalAmount = Convert.ToDouble("9795361.530") * 1.0;
double secondTotalAmount = (Math.Truncate(totalAmount * 100)) / 100;
例如:2
double totalAmount1 = Convert.ToDouble("9795361.550") * 1.0;
double secondTotalAmount1 = (Math.Truncate(totalAmount1 * 100)) / 100;
如示例1所示,数学截断量 9795361.530 后变为 9795361.520 并且如Ex:2所示,在数学截断后, 9795361.550 变为 9795361.55
为什么我得到的金额9795361.530变成9795361.520 ,并且