Fixed rounding error in calculator