I am trying to find a simple solution to rounding numbers in C++. My dilemma is that I am doing a tax calculation that is .0875. When I use it in my calculation it rounds up perfect however when I add it to my end totals it loses .5 so therefore when I add all my totals up with the two percentage calculations I have..I lose 1 cent. How do I get this to not lose the .5.