I'd like to dispaly only one decimal place. I've tried the following:
string thevalue = "6.33";
thevalue = string.Format("{0:0.#}", thevalue);
result: 6.33. But should be 6.3? Even 0.0 does not work. What am I doing wrong?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…