代码如下:
Dim a As Double = Math.Round(2.155, 2)Dim s As Double = Round2(2.155, 2)Output.Show(a) Output.Show(s)
显示结果:
2.152.15
为什么显示结果不是2.16?