C#限制转换后的double小数点留1位

glb_timer1WaitSeconds += 0.1;
string s = string.Format("{0:f1}", glb_timer1WaitSeconds);

原文地址:https://www.cnblogs.com/fx427103/p/4198789.html