1.
float x = 3.14F;
string s = x.ToString();
2.
string s = "3.14";
float x = float.Parse(s);
C#中进行string与float的转换
最新推荐文章于 2024-05-27 17:17:59 发布
1.
float x = 3.14F;
string s = x.ToString();
2.
string s = "3.14";
float x = float.Parse(s);