qbq
0
Q:

How to Convert double to int in C

double a = 12.34;
int b = a ;
//b = 12 not 12.34
1
int vIn = 0;
double vOut = (double)vIn;
0

New to Communities?

Join the community