turning double into int in c code example
Example 1: How to Convert double to int in C
double a = 12.34;
int b = a ;
//b = 12 not 12.34
Example 2: int to double c
int vIn = 0;
double vOut = (double)vIn;
double a = 12.34;
int b = a ;
//b = 12 not 12.34
int vIn = 0;
double vOut = (double)vIn;