home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / arch / 10535 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.9 KB

  1. Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!agate!overload.lbl.gov!dog.ee.lbl.gov!horse.ee.lbl.gov!torek
  2. From: torek@horse.ee.lbl.gov (Chris Torek)
  3. Newsgroups: comp.arch
  4. Subject: Re: integer/BCD/... dollars (was IEEE used for Dollars and Cents)
  5. Message-ID: <27311@dog.ee.lbl.gov>
  6. Date: 9 Nov 92 02:33:05 GMT
  7. References: <2664312@zl2tnm.gen.nz>
  8. Reply-To: torek@horse.ee.lbl.gov (Chris Torek)
  9. Organization: Lawrence Berkeley Laboratory, Berkeley
  10. Lines: 36
  11. NNTP-Posting-Host: 128.3.112.15
  12.  
  13. (Last word on this non-computer-architecture stuff :-) )
  14.  
  15. I wrote:
  16. >> Signed integers are not an absolute must, but precision greater than
  17. >> one penny is; most businesses seem to keep records to five digits or so.
  18.  
  19. In article <2664312@zl2tnm.gen.nz> don@zl2tnm.gen.nz (Don Stokes) writes:
  20. >Figures are only _published_ to five digits or so.  Bookkeeping must be
  21. >to the last cent,
  22.  
  23. Sorry, I meant `five digits past the decimal point', the decimal point
  24. being dollars.  These are apparently called `mills', i.e., thousanths
  25. of a cent ($0 + 0 cents + 0.001 cents = 1/1000 cents = 0.00001
  26. dollars).
  27.  
  28. I did drop a decimal point in my kitchen arithmetic:
  29.  
  30.     2^64 =    18446744073709551616
  31. in mills:    184467440737095.51616
  32. or:    $184 467 440 737 095.51616
  33. or:    $184 467 441 million
  34. or:    $184 467 billion [U.S. usage, though I understand `milliard' is
  35.                 dropping out of favour]
  36. or:    $184 trillion
  37.  
  38. If signed, we have to cut this in half ($92 trillion).
  39.  
  40. (Since our debt has been growing exponentially, this is not really much
  41. worse than I thought.  Exponential rapidly overwhelms a factor of ten.
  42. Note, incidentally, that 18-digit BCD has less range than 64-bit
  43. binary.  Other random side note: the traditional way to retire the
  44. national debt is high inflation.  When this happens, will accountants
  45. stop using mills?)
  46. -- 
  47. In-Real-Life: Chris Torek, Lawrence Berkeley Lab CSE/EE (+1 510 486 5427)
  48. Berkeley, CA        Domain:    torek@ee.lbl.gov
  49.