Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 .Net Micro Framework 中将a 转换string为 a ?float
string
float
字符串格式化为:"38.5000"
"38.5000"
答案是,你不使用,Double而是使用 - double.Parse。非常感谢 Jon Skeet 在路上帮助我。
Double
double.Parse
float f = Convert.ToSingle("38.5");