c# convert int double code example
Example 1: convert int to double c#
int x = 420;
double y = Convert.ToDouble(x);
Example 2: double to int c#
Convert.ToInt32(8.6)
int x = 420;
double y = Convert.ToDouble(x);
Convert.ToInt32(8.6)