double to intc# code example
Example 1: double to int c#
Convert.ToInt32(8.6)
Example 2: How to Convert double to int in C
double a = 12.34;
int b = a ;
//b = 12 not 12.34
Convert.ToInt32(8.6)
double a = 12.34;
int b = a ;
//b = 12 not 12.34