Changed the truncation of division to rounding for slightly more
accurate percentages.