C# how to return a whole value of a double in C# code example Example: convert int to double c# int x = 420; double y = Convert.ToDouble(x);