comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Integer to String
Date: Thu, 29 Jan 2015 12:16:36 -0700
Date: 2015-01-29T12:16:36-07:00	[thread overview]
Message-ID: <mae0tk$gn1$2@dont-email.me> (raw)
In-Reply-To: <YtednSPAs64J8lfJnZ2dnUU7-ImdnZ2d@giganews.com>

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


  parent reply	other threads:[~2015-01-29 19:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-29 17:36 Integer to String montgrimpulo
2015-01-29 17:51 ` Simon Wright
2015-01-29 19:16 ` Jeffrey Carter [this message]
2015-01-29 20:39 ` Anh Vo
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox