Content deleted Content added
→Decimal input (Windows) Part 2: Thanks for trying, Spitzak, but I still don't get it. |
|||
Line 216:
::Using "turns into" your statement is "960 is equivalent to 448 modulus 256, and 448 turns into 448, not 192, therefore modulus has nothing to do with it". What you have shown is that modulus is not applied to 448. And the number 960 is completely irrelevant to this conclusion.
::The other question is why you think using 448 instead of 960 somehow increases "brevity". My best guess is that you think the system might turn 960 into 448 and that you are avoiding difference between ANSI and OEM code pages? But then you correctly indicate that 448 turns into 448, not involving 960 at all, and even correctly identify the code point 448 would turn into if modulus 256 was applied (192, using the character from the ANSI code page). I am really trying to figure out your logic here. Perhaps you could write the "less brevity" version using 960 so I could get some idea of what in the world you are thinking?[[User:Spitzak|Spitzak]] ([[User talk:Spitzak|talk]]) 18:53, 21 September 2020 (UTC)
:::I find this use of "turns into" quite bizarre and I still don't really get it. According to you, "The input to this operation [typing a number] is the number 960 and the output is the number 192." No, in Word or Wordpad, the output is the character {{char|π}}, which has a decimal code point of 960; in Notepad or in the Wiki edit box, it's {{char|└}}, which has a decimal code point of 9592.
:::I don't know Python, but I do know Excel. It has a "mod" function of two variables, formatted "mod (a,b)", which returns the remainder from division, the least number r ≥ 0 such that a = nb + r for n ≥ 0. Perhaps, by "x turns into y" you mean that y = mod (x,256)? That would fit one of your examples, as 192 = mod (960,256). However, this interpretation doesn't fit your claim that 960 could (depending on what?) turn into 960, since 960 ≠ mod (960,256).
:::As regards brevity, surely it is briefer to display the one character {{char|ǀ}} rather to display two characters, {{char|└}} and {{char|À}}.
:::Also, you have not explained what it is for a modulus to be "applied". Knowing what it is for paint or fertilizer to be applied does not get me very far.
:::[[User:Peter M. Brown|Peter Brown]] ([[User talk:Peter M. Brown|talk]]) 22:22, 21 September 2020 (UTC)
|