To round a floating point number you simply add 0.5 and typecast to int.
If you want to round the variable "someDouble" you can do:

int roundedValue = (int) someDouble + 0.5;