Yuck Xerath.
Write a function not a macro.
Code:
int round_it(int d)
{
   return std::floor(d+0.5);
}