Fixed issue where division calculation for probabilities rounding to the nearest integer.