Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!dsl.pitt.edu!pitt!willett!ForthNet From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie) Newsgroups: comp.lang.forth Subject: Mathematical routines Message-ID: <1537.UUL1.3#5129@willett.pgh.pa.us> Date: 16 Aug 90 11:47:39 GMT Organization: String, Scotch tape, and Paperclips. (in Pgh, PA) Lines: 31 Date: 08-14-90 (20:27) Number: 3652 (Echo) To: R.BERKEY [ROBERT] Refer#: 3607 From: ZAFAR ESSAK Read: NO Subj: MATHEMATICAL ROUTINES Status: PUBLIC MESSAGE Thankyou Robert, and thanks to Colin Plumb for responding to my question about catalogue numbers where a following blank is significant and different from a 0. Robert's solution of using BASE 36 works fine but it surprised me in that it is not really using base 36 but rather treating everything from decimal 32 to 68 as valid "numeric" characters. This includes all kinds of punctuation. Whereas "36 BASE !" would include all numerals 0 to 9, and alphas from A to Z as valid "numeric" characters, but not include the punctuation. However, it does solve the problem of converting the strings to unique double numbers for purpose of an index. Furthermore, I noticed by your example that " 078.1" implies that in your system the Forth word " can be used in the interpretative mode, not just when compiling. Is this true? Zafar. --- * Via Qwikmail 2.01 NET/Mail : British Columbia Forth Board - Burnaby BC - (604)434-5886 ----- This message came from GEnie via willett through a semi-automated process. Report problems to: uunet!willett!dwp or dwp@willett.pgh.pa.us