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. Conv
Another option either using Double or double is use Double.valueOf(double d).intValue();. Simple and clean
Double
Double.valueOf(double d).intValue();