From: "Richard Riehle" <adaworks@earthlink.net>
Subject: Re: Converting numbers to strings without Ada.Text_IO?
Date: Mon, 12 Apr 2004 05:13:53 GMT
Date: 2004-04-12T05:13:53+00:00 [thread overview]
Message-ID: <lApec.5801$k05.123@newsread2.news.pas.earthlink.net> (raw)
In-Reply-To: rWfdc.2825$MA6.804@reader1.news.jippii.net
"Tapio Kelloniemi" <spam12@thack.org> wrote in message
news:rWfdc.2825$MA6.804@reader1.news.jippii.net...
> My idea is to convert variables of generic integer and real types to
> some type that can represent all possible integers or reals on that
> system and then recursively extracting the digits by dividing by base
> etc. Are there some issues that I should be aware of?
This question comes up so often among novices to Ada that I
included an extended example of it in Ada Distilled. The examples
are in valid source code and each line of code is commented.
You can download Ada Distilled from http://www.adaic.org along with
a Zip file with all the programs in electronic form so you can experiment
with them.
Richard Riehle
prev parent reply other threads:[~2004-04-12 5:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-08 17:25 Converting numbers to strings without Ada.Text_IO? Tapio Kelloniemi
2004-04-08 18:14 ` Martin Dowie
2004-04-09 3:50 ` James Rogers
2004-04-09 6:03 ` Martin Dowie
2004-04-09 12:34 ` James Rogers
2004-04-09 0:06 ` Stephen Leake
2004-04-09 9:58 ` Dmitry A. Kazakov
2004-04-12 5:13 ` Richard Riehle [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox