comp.lang.ada
 help / color / mirror / Atom feed
From: John McCabe <john@assen.demon.co.uk>
Subject: Re: coercing an integer to a string
Date: 1998/11/16
Date: 1998-11-16T00:00:00+00:00	[thread overview]
Message-ID: <72ovh9$6m2@gcsin3.geccs.gecm.com> (raw)
In-Reply-To: 87af1s3zvw.fsf@mihalis.ix.netcom.com

Chris Morgan <mihalis@ix.netcom.com> wrote:
>dummy@e.mail (Emmanuel M. D�carie) writes:

>Think about it a bit. Function 1 requires you to build up a string
>piece by piece. Can you work out how to decide how many 1000s, 100s,
>10s, units and so on the number contains? Then you would just need to
>work out how to join the characters together. 
>
>Similarly the 2nd function - work out what each character means in
>terms of numerical value and then add them together. It's not as hard
>as it seems.

It's even easier than it seems if you use the facilities of the language 
that Tom Moran has mentioned.


-- 
Best Regards
John McCabe
---------------------------------------------------------------------
Marconi Electronic Systems
Simulation & Training Division
=====================================================================
Not necessarily my company or service providers opinions.
=====================================================================






  reply	other threads:[~1998-11-16  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-16  0:00 coercing an integer to a string Emmanuel M. D�carie
1998-11-16  0:00 ` Chris Morgan
1998-11-16  0:00   ` John McCabe [this message]
1998-11-17  0:00     ` Chris Morgan
1998-11-17  0:00       ` John McCabe
1998-11-18  0:00         ` Emmanuel M. D�carie
1998-11-20  0:00           ` Dale Stanbrough
1998-11-23  0:00             ` Robert I. Eachus
1998-11-23  0:00           ` Chris Morgan
1998-11-16  0:00 ` Tom Moran
1998-11-16  0:00   ` John McCabe
replies disabled

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