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