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?
Here is another way to format floating point numbers as you need it:
string.Format("{0:F1}",6.33);