1
here string strScore =“2”;或 串strScore =“2.45656” 现在我在这里检查的条件,如果它是格式化字符串的输出
double value = double.Parse(strScore);
strScore = value.ToString("##.##");
2.45656这样那么我示出输出作为 2.45
如果输入是 串strScore = “2”; 那么输出中显示为“2”
,但现在我需要显示输出有2.00 我如何可以格式化根据条件这样的代码
感谢马克·拜尔斯 – happysmile 2010-05-18 08:41:53