double d = 123.45; var output = Math.Truncate(d).ToString();
string myOnScreenValue = string.Format("{0:###}", d); // 3 positions string myOtherOnScreenValue = string.Format("{0:F0}", d); // better: 0 digits in fractional part
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)