NumberFormatInfo num = new NumberFormatInfo(); num.NumberDecimalDigits = 2; string m = double.Parse(obj.ToString()).ToString("N", num); return m;