C# double to float code example
Example 1: convert int to double c#
int x = 420;
double y = Convert.ToDouble(x);
Example 2: C# Cast double to float
double double_Num = 42.0349384093;
float float_Num = (float)dNum;
By Barry Cox
Example 3: double to int c#
Convert.ToInt32(8.6)