you can also round to the nearest integer in amazing mathemagical ways!
Code:
int RoundedValue = static_cast<int>(dblValue + .5);
Since casting to an int will just truncate the decimal part.