convert double to float c# code example
Example 1: C# Cast double to float
double double_Num = 42.0349384093;
float float_Num = (float)dNum;
By Barry Cox
Example 2: c# convert double to int
double someDouble = 12323.2;
int someInt = (int)someDouble;