变量:
Dim jw1, jw2 As Decimal '高精度小数
jw1 = 2.11
jw2 = Math.Ceiling(jw1 * 10)/10
Output.Show(jw1)
Output.Show(jw2)
同理其它类通,表列:Datacolchanged表事件
If e.DataCol.Name = "第九列" Then
If e.DataRow.IsNull("第九列") Then
e.DataRow("第十列") = Nothing
Else
e.DataRow("第十列") = Math.Ceiling(e.DataRow("第九列") * 10)/10
e.DataRow("第九列") = Math.Ceiling(e.DataRow("第九列") * 10)/10
End If
End If