c# int from double code example
Example 1: convert int to double c#
int x = 420;
double y = Convert.ToDouble(x);
Example 2: c# convert double to int
double someDouble = 12323.2;
int someInt = (int)someDouble;
int x = 420;
double y = Convert.ToDouble(x);
double someDouble = 12323.2;
int someInt = (int)someDouble;