, IEEE 754. , IEEE 754 , , .
So, if you have sum + V[i], this value will always be greater than or equal sum. Rounding to the next representable number will either result in an expression sumor a larger number sum.
Of course, there is nothing in the original question that would prevent sumbeing negative in the first place. In this case, the answer will be trivial.
IEEE 754 arithmetic does not have a number fsuch as 0 + f = 0at the same time f > 0.
source
share