double value of integer c code example Example: How to Convert double to int in C double a = 12.34; int b = a ; //b = 12 not 12.34