Proper rounding/casting and using doubles for calculations.