From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Integer to String Date: Thu, 29 Jan 2015 12:16:36 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Thu, 29 Jan 2015 19:16:05 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="e4b4b8b581459d4904f1a14c474a248f"; logging-data="17121"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/s8aoBQ9+6yJ9EnqYTowOTzmk20/HFH1c=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: Cancel-Lock: sha1:Vg+GupBlcE2EdwtjCUwTr9CWAr0= Xref: number.nntp.giganews.com comp.lang.ada:192107 Date: 2015-01-29T12:16:36-07:00 List-Id: On 01/29/2015 10:36 AM, montgrimpulo wrote: > > from Integers (1,2,3,4,5,6) to String "123456" and then to Integer 123456, > to avoid multiplications and additions. > > I tried with some Attributes and solved the second part. For the first part (converting a list of Integers in 0 .. 9 to a String), you could take the 'Image of each integer and store the digit Character in the image into the correct position in a String. -- Jeff Carter "Ditto, you provincial putz?" Blazing Saddles 86