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