public static double Round(object data)
{
if (data == null || data == System.DBNull.Value)
{
return 0;
}
else
{
return Convert.ToDouble(Math.Round(Convert.ToDecimal(data), 2, MidpointRounding.AwayFromZero));
}
}
© 著作权归作者所有
举报
相关热门文章
发表评论
0/200