c# float to double 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: convert string to double c#
Console.WriteLine(Convert.ToDouble("104.1169"));