Bugfix for numerical issues when calculating itemSum.

(int) (5.06 * 100) = 505 but should be 506