110,536
社区成员
发帖
与我相关
我的任务
分享
float a = 11.00f;
string _result = a.ToString("F2");//
float y =11.00f;
string s1 = string.Format("{0:0.00}",y);//11.00
string s2 = y.ToString("f2");//11.00
float a =0.3333f;
Console.WriteLine( String.Format("{0:N2}", a));