I\'d like to dispaly only one decimal place. I\'ve tried the following:
string thevalue = \"6.33\";
thevalue = string.Format(\"{0:0.#}\", thevalue);
option 1 (let it be string):
string thevalue = "6.33";
thevalue = string.Format("{0}", thevalue.Substring(0, thevalue.length-1));
option 2 (convert it):
string thevalue = "6.33";
var thevalue = string.Format("{0:0.0}", double.Parse(theValue));
option 3 (fire up RegEx):
var regex = new Regex(@"(\d+\.\d)"); // but that everywhere, maybe static
thevalue = regexObj.Match(thevalue ).Groups[1].Value;