how to divide a float in c# code example Example: c# integer division double num3 = (double)num1/(double)num2;