home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / arch / 12236 < prev    next >
Encoding:
Text File  |  1993-01-11  |  4.4 KB  |  87 lines

  1. Newsgroups: comp.arch
  2. Path: sparky!uunet!pipex!ibmpcug!impmh!dsg
  3. From: dsg@impmh.uucp (Dave Gordon)
  4. Subject: Re: big + little endian (was: Comparison of Alpha, MIPS ..)
  5. Message-ID: <1993Jan11.170039.7109@impmh.uucp>
  6. Organization: Integrated Micro Products Ltd
  7. References: <1992Dec29.044012.1@cc.curtin.edu.au> <3623363@zl2tnm.gen.nz> <WAYNE.92Dec30093950@backbone.uucp> <markg.79.726169747@county.lmt.mn.org> <1993Jan6.171242.2895@lsl.co.uk>
  8. Date: Mon, 11 Jan 1993 17:00:39 GMT
  9. Lines: 76
  10.  
  11. In <1993Jan6.171242.2895@lsl.co.uk> snail@lsl.co.uk writes:
  12. >In article <markg.79.726169747@county.lmt.mn.org>, markg@county.lmt.mn.org (Mark Gilbert) writes:
  13. >> In article <WAYNE.92Dec30093950@backbone.uucp> wayne@backbone.uucp (Wayne Schlitt) writes:
  14. >>>From: wayne@backbone.uucp (Wayne Schlitt)
  15. >> I have identified the root of this whole big-endian/little-endian debate.  
  16. >> The conflict is is between text and numbers.  We read left to right.  But, 
  17. >> if you were to number the digits of an integer, you would do it right to 
  18. >> left.  The one's digit would be 0, the ten's digit, 1, etc.
  19. >> 
  20. >> This should never have been the case.  We adopted our number system from the 
  21. >> Arabs, and the Arabs read right to left.  For them, the direction of reading 
  22. >> text and numbers is CONSISTENT.  The whole problem arose because we failed 
  23. >> to reverse the numbering system when we borrowed it from the Arabs.
  24. >> 
  25. >> I propose that we now correct this historical oversight.  Let us write 
  26. >> numbers least significant digit first.  The bang symbol can be used to 
  27. >> replace the decimal point, in order to distinguish little-endian numbers 
  28. >> from big-endian.  The integer six hundred and fifty four should now be 
  29. >> written !456.  Sixteen dollars and twenty five cents is now $ 52!61.
  30. >
  31. >You've just proved yourself wrong!
  32. >
  33. >The number six-hundred and fifty four is written 6-5-4, left to right, exactly
  34. >the way we write. That is, I read that I have 6 hundreds before I'm interested
  35. >in finding out how many tens or units I have. Now I may had to scan the number
  36. >for length to work out that the 6 refers to hundreds, but that is a separate
  37. >operation.
  38. >
  39. >The number !456 would be read as 4 and fifty and 6 hundred. If I were to read
  40. >that as six hundred and fifty four, I would still have to scan the number to
  41. >find the hundreds digit, then the tens then the units and combine this to give
  42. >the number six hundred and fifty four.
  43. >
  44. >So either way, we must scan the number, just that currently we write the number
  45. >the way we say it.
  46. >
  47. >Also: surely $16.25 is actually 52!61$ in your scheme?
  48. >-- 
  49. >snail@lsl.co.uk      
  50.  
  51. Note that not all European languages scan numbers the same way:
  52. English is generally big-endian, except for 13-19 (the words
  53. for these numbers put the units before "teen" suffix); German
  54. consistently puts the units before the tens (but after the hundreds);
  55. and French is a complete disaster for consistency, with wierd
  56. constructions like soixante-dix, quatre-vingts, etc.
  57.  
  58. Also note yet further inconsistencies when the numbers refer to times;
  59. many people still read an analogue clock showing 11:35 as "five-and-twenty
  60. to twelve"; [similar oddity in German: 1125 read as "funf vor halb zwolf"
  61. i.e. five (minutes) before half (to) twelve].
  62.  
  63. If consistency were the primary requirement, the best solution
  64. would be to reverse the order of writing as proposed above, *AND*
  65. reverse the order of speaking to start with the least-significant
  66. digit.  But the convenience of knowing the most-significant digit
  67. first (and often, that's all you really care about) probably
  68. outweighs the wish for consistency.
  69.  
  70. [ObSillyNotationalSuggestion]
  71. How about prefixing written numbers with a scale indicator, thus
  72. eliminating the need to prescan the digit string to find the
  73. magnitude (and hence the appropriate number-name for the first digit).
  74. Thus 12345654321 (twelve thousand three hundred and forty-five million,
  75. six hundred and fifty-four thousand, three hundred and twenty-one (UK)
  76. or twelve billion, three hundred forty-five million, six hundred
  77. fifty-four thousand, three hundred twenty-one (US)) could be written
  78. as "(10)12345654321".  The (10) indicates that the first digit
  79. represents 10^10, and helps avoid errors in counting the digits
  80. that follow when reading/speaking the number.
  81. -- 
  82.  
  83. ===============================================================================
  84. Dave | dsg@imp.co.uk | +44 753 516599 | I am not a .sig virus, I am a free bug!
  85. ===============================================================================
  86.  
  87.