How to convert a double value to int doing the following:
double
int
Double If x = 4.97542. Convert to int x = 4. Double If x = 4.23544. Convert to int x = 4.
That is, the answer is always rounding down.