规则: 四舍六入五考虑。 五后非零就进一, 五后皆零看奇偶, 五前为偶应舍去, 五前为奇要进一。 c#: Math.Round(new Decimal(1.2050),2) 1.2 Math.Round(new Decimal(1.2150),2) 1.22 Math.Round(new Decim ...
分类:
编程语言 时间:
2017-07-04 19:58:53
阅读次数:
208
规则:
四舍六入五考虑,
五后非零就进一,
五后皆零看奇偶,
五前为偶应舍去,
五前为奇要进一。
c#:
Math.Round(new Decimal(1.2050),2) 1.2
Math.Round(new Decimal(1.2150),2) 1.22
Math.Round(new Decimal(1.2250),2) 1.22
...
分类:
编程语言 时间:
2015-08-20 16:57:09
阅读次数:
330