c language convert a float to an int by simply down-casting c code example
Example: c float to int
# you can cast in c like so
float my_float= 1.446;
int my_int = (int) my_float;
# you can cast in c like so
float my_float= 1.446;
int my_int = (int) my_float;