得到某值,保留小数点后两位

首先引入命名空间:
Imports System.Math

然后代码:
Math.Round(CDbl(xxxx), 2)

posted on 2006-08-18 17:06  LiAnGcAt  阅读(634)  评论(0编辑  收藏  举报

导航