Talk:Unicode input: Difference between revisions

Content deleted Content added
Decimal input (Windows) Part 2: No magic can turn 960 into 192. Defended my claim that 960 ≡ 448 modulo 256.
Line 196:
::Likewise 960 ≡ 448 (mod 256) because 960−448 = 512, which is a multiple of 256. Also, 960 and 448 have the same remainder, 192, when divided by 256.
::[[User:Peter M. Brown|Peter Brown]] ([[User talk:Peter M. Brown|talk]]) 03:29, 19 September 2020 (UTC)
:::You are talking about all the numbers that are equivalent. I was talking about the [[modulo operator]] which returns the smallest of these numbers. In any case 960 ≡ 192 mod 256, and 960−192 = 768 = 3 × 256, so you have no reason to think 448 is more likely than 192. The weird thing is your example actually shows the correct characters you might get if you type 448 (either 448 or 192) but I still don't understand why you have 960 in that sentence. Just to prove this, lets ask Python what 960 mod 256 is, and make sure no 448 appears:
>>> 960%256
192
[[User:Spitzak|Spitzak]] ([[User talk:Spitzak|talk]]) 18:55, 19 September 2020 (UTC)