How Does Modulus Divison Work

后端 未结 19 1540
栀梦
栀梦 2020-11-22 06:55

I don\'t really understand how modulus division works. I was calculating 27 % 16 and wound up with 11 and I don\'t understand why.

I can\'t

19条回答
  •  清酒与你
    2020-11-22 07:25

    Very simple: a % b is defined as the remainder of the division of a by b.

    See the wikipedia article for more examples.

提交回复
热议问题