C calculate double and asign to int code example Example: How to Convert double to int in C double a = 12.34; int b = a ; //b = 12 not 12.34