Home Forums General Programming [resolved] mask to 7 bits Reply To: [resolved] mask to 7 bits

#13811
atom
atom
Moderator

Here is a few modulot operation results to better illustrate what this does

0 % 128 = 0
16 % 128 = 16
32 % 128 = 32
48 % 128 = 48
64 % 128 = 64
80 % 128 = 80
96 % 128 = 96
112 % 128 = 112
128 % 128 = 0
144 % 128 = 16
160 % 128 = 32
176 % 128 = 48
192 % 128 = 64
208 % 128 = 80
224 % 128 = 96
240 % 128 = 112
256 % 128 = 0
272 % 128 = 16
288 % 128 = 32
304 % 128 = 48
320 % 128 = 64
336 % 128 = 80
352 % 128 = 96
368 % 128 = 112
384 % 128 = 0
400 % 128 = 16
416 % 128 = 32
432 % 128 = 48
448 % 128 = 64
464 % 128 = 80
480 % 128 = 96
496 % 128 = 112