home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / lisp / 3337 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  3.3 KB

  1. Xref: sparky comp.lang.lisp:3337 alt.usage.english:10948
  2. Newsgroups: comp.lang.lisp,alt.usage.english
  3. Path: sparky!uunet!cs.utexas.edu!torn!nott!bnrgate!bcars267!bcars267!emcoop
  4. From: emcoop@bnr.ca (hume smith)
  5. Subject: big numbers (was Re: Lisp syntax beauty?)
  6. In-Reply-To: hmueller@orca.tamu.edu's message of 22 Jan 1993 18:22:18 GMT
  7. Message-ID: <EMCOOP.93Jan22151458@bcars148.bnr.ca>
  8. Sender: news@bnr.ca (usenet)
  9. Nntp-Posting-Host: bcars148
  10. Organization: Bell-Northern Research, Ottawa, Canada
  11. References: <1993Jan21.230642.18561@netlabs.com>
  12.     <19930122162651.0.SWM@SUMMER.SCRC.Symbolics.COM>
  13.     <dfs.727723285@noonian> <1jpe0qINNnf1@tamsun.tamu.edu>
  14. Date: Fri, 22 Jan 1993 20:14:58 GMT
  15. Lines: 53
  16.  
  17. this is probably the first cross-post between these two groups :-)
  18.  
  19. In article <1jpe0qINNnf1@tamsun.tamu.edu> hmueller@orca.tamu.edu (Hal Mueller) writes:
  20.  
  21.    In article <dfs.727723285@noonian> dfs@doe.carleton.ca (David F. Skoll) writes:
  22.    >who really needs the number 394829348234982435 formatted in English words??
  23.    >Just try (format t "~R~%" 394829348234982435) for fun!
  24.  
  25. printing cheques from the US gov't to its defence contractors?  but that's mostly
  26. in Cobol i suppose...  perhaps the mexican gov't...  all those pesos...
  27.  
  28.    Well, if i DID need it, I'd hate to write it!  Fortran and C versions
  29.    are left as an exercise.
  30.  
  31. (for alt.usage.english readers - lisp's ~R format directive, according to the
  32. draft ANSI standard, will print an integer in one of four formats; english
  33. cardinal (4 -> four), english ordinal (4 -> fourth), "new roman" (4 -> IV),
  34. and "old roman" (4 -> IIII).)
  35.  
  36. i have a few questions about ~R, some of which are lisp questions, and some
  37. english.  if any appreciable discussion ensues, i should probably try to
  38. split the thread (unravel it?) into the two groups.  (i'm probably stretching
  39. it even to start the two together.)
  40.  
  41. - the draft is silent about what to do with nonpositives, especially
  42.   for roman numerals.  should the english cardinal of -1 be "minus one" or
  43.   "negative one"?  (i prefer the latter - minus, to me, is the operator
  44.   not the additive inverse.)  what should happen with the others?
  45.   does "zeroth" make sense to anyone other than a thermodynamicist? :-)
  46.  
  47. - which english style should BIG numbers (such as Mr. Skoll provided)
  48.   be written into?  i assume, since it's the AMERICAN national standards
  49.   institute, they mean the american way - million, billion, trillion,
  50.   etc.  not the english million, milliard, billion, billiard (?), etc.
  51.   or will the standard permit/expect adaption to locale, using milliard
  52.   in York and billion in New York?  does the usual system locale setup stuff
  53.   even handle this kind of information?
  54.  
  55. - (definitely an alt.usage.english question) what is the progression
  56.   for very large numbers?  mi-, bi-, tri-, quad-, quint-, sext-, sept-,
  57.   oct-, non-, dec-; then what?  i remember something like vingintillion
  58.   in american for 1000^(20+1)...
  59.  
  60. i'm not asking idly; i hope to begin giving XLisp bignums, and would
  61. like to provide as much of ~R as i possibly can as well, just 'cause
  62. it's so cute! :-)
  63.  
  64. (and to Mr. Mueller: i've written such an expander in Basic; it really
  65. isn't so bad.  the three-digit cycle helps a lot.)
  66. --
  67. Hume Smith                                Honour sick and davey cris-cross
  68. hume.smith@acadiau.ca                     McTruloff sentimie
  69. emcoop@bnr.ca                             A parsnip inner pair threes.
  70.