Convert float to int
#include <stdio.h> int main(void) { int i; float f; f = 34.0098; i = f; /* convert float to int */ printf("%f %d", f, i); return 0; }