Why does the remainder after dividing by 2 be 1?
ws
ws 2021-09-18 15:51:15
0
3
6995

Why when 1 is divided by 2, the remainder is 1

ws
ws

reply all(2)
逆旅行人

Assume that you have only learned integers, then the quotient of 1 divided by 2 is 0, and the remainder is 1, right? Isn't there nothing wrong with this?

猪老湿

1 % 2 , the modular operation is equal to 1, there is nothing wrong with it

  • reply I still don’t understand, the operation from decimal to binary, 1 divided by 2. Not 0.5
    ws author 2021-09-19 15:51:54
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template