1.
float x = 3.14F;
string s = x.ToString();
2.
string s = "3.14";
float x = float.Parse(s);
C#中进行string与float的转换
猜你喜欢
转载自blog.csdn.net/dyxcome/article/details/84829354
今日推荐
周排行