c#计算结果保留一位小数点result = (weight - Bbiaow) * 100 / Bbiaow;Conso
c#计算结果保留一位小数点
result = (weight - Bbiaow) * 100 / Bbiaow;
Console.WriteLine("{0:F1}",result);
该怎么改
case'N“:
Bbiaow = (shenh - 100) * 0.9;
Console.WriteLine(Bbiaow.ToString("0.0"));
result = (weight - Bbiaow) * 100 / Bbiaow;
Console.WriteLine("0.0");
label7.Text += "您的标准体重应为" + Bbiaow + "kg,"
+ "实际比率为" + result + "%"+"n";
break;