Let\'s say my method has a argument of type Double. but sometimes what I pass is an int like 7 and not a double like 7.0 , so if I use ToString method then 7 will be \"7\" ,
Are you looking for this?
double x = 7.0; String Display = x.ToString("0.0", CultureInfo.CreateSpecificCulture("de-DE"));