## Error in binary arithmetics

Hello everyone !
I got a problem, I can't figure out why when I compute $A+B$ and $2\times (\frac{A}{2}+\frac{B}{2})$ the result is sometimes different.
Can anyone explain why the results of the two operations are different ?

Edit : A and B are coded in binary of course and we compute a binary addition.
 PhysOrg.com engineering news on PhysOrg.com >> NASA: Austin, calling Austin. 3-D pizzas to go>> Research suggests modular design competence can benefit new product development>> Army ground combat systems adopts tool for choosing future warfighting vehicles
 Recognitions: Gold Member Science Advisor Are you using integer or floating point ? My guess is former , and one of the numerators is an odd number.
 Integers I forgot to mention sorry.

Recognitions:
Gold Member

## Error in binary arithmetics

Well there ya go.

Got Basic?

FOR I = 1 , 10 , 1
PRINT I, INT( I/2)
NEXT I
END

 Quote by jim hardy Well there ya go. Got Basic? FOR I = 1 , 10 , 1 PRINT I, INT( I/2) NEXT I END
I see thank you :) .

Recognitions: