I am reading CSAPP the book and it mentions:
From float or double to int, the value will be rounded towar
float
double
int