四舍五入的版本:
a)Math.Round(Convert.ToDecimal(12.5));//返回12
b) Math.Round(Convert.ToDecimal(1.67),2,MidpointRounding.AwayFromZero);//返回 1.7
c) Math.Round(Convert.ToDecimal(1.65),2,MidpointRounding.AwayFromZero); //返回 1.7
string Khjgl="1";
string Ycjkscs="8";
var resultValue= Math.Round(Convert.ToDouble( Khjgl) / Convert.ToDouble(Ycjkscs), 2, MidpointRounding.AwayFromZero) ;
备注:不加会造成 a 类型情况;加上MidpointRounding.AwayFromZero 更加准确。