Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpcvia!scottb From: scottb@hpcvia.CV.HP.COM (Scott_Burke) Newsgroups: comp.sys.handhelds Subject: Re: My new 48. Message-ID: <31210037@hpcvia.CV.HP.COM> Date: 29 Jun 90 18:40:18 GMT References: <22895@boulder.Colorado.EDU> Organization: Hewlett-Packard Co., Corvallis, Oregon Lines: 17 I'll answer the second question. To take a number like 1234567890, you've got two obvious (to me) choices. One, to do a bunch of IP and MODs and division by 10s and all that stuff. Or, do a STR-> to make it "1234567890", then a DUP SIZE to get the length of the thing, then a loop from 1 to size to extract each digit in turn (e.g., "1234567890" n n SUB will extract the nth character as a string), then a OBJ-> on the returned character to change it back to a number. If you then want to, you can REPL the number back into the string, and at the end of it all, do another OBJ-> to get your new number back. scott@hpcvia.hp.com My programming notes have nothing to do with HP.