convert to double c# code example
Example 1: convert int to double c#
int x = 420;
double y = Convert.ToDouble(x);
Example 2: convert string to double c#
Console.WriteLine(Convert.ToDouble("104.1169"));
Example 3: c# convert double to string
Double result = "12345.6789";
// outputs 12345.6789
print(result.ToString("r"));