comp.lang.ada
 help / color / mirror / Atom feed
From: "Martin Dowie" <martin.dowie@nospam.baesystems.com>
Subject: Re: ToString?
Date: Tue, 12 Mar 2002 13:30:55 -0000
Date: 2002-03-12T13:30:55+00:00	[thread overview]
Message-ID: <3c8e02cb$1@pull.gecm.com> (raw)
In-Reply-To: a6kv3e$faat1$1@ID-107015.news.dfncis.de


"Nazgul" <darkelf@aim.homelinux.com> wrote in message
news:a6kv3e$faat1$1@ID-107015.news.dfncis.de...
> Is there something like Integer'ToString(xxx) that converts an integer to
a
> string ?

try 'Image as in:

declare
   My_Integer : Integer := 10;
begin
   Put_Line (Integer'Image (My_Integer));
end;

The string will have a ' ' character at the front if positive.

To get more control about formatting check out package
Ada.Text_IO.Integer_IO (and Ada.Text_IO.Float_IO etc).





  parent reply	other threads:[~2002-03-12 13:30 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-12 13:16 ToString? Nazgul
2002-03-12 13:24 ` ToString? Peter Hermann
2002-03-12 13:25 ` ToString? Ingo Marks
2002-03-12 13:27 ` ToString? Larry Hazel
2002-03-12 13:30 ` Martin Dowie [this message]
2002-03-12 16:48   ` ToString? Jeffrey Carter
2002-03-13  8:38     ` ToString? Martin Dowie
2002-03-13 22:18       ` ToString? Jeffrey Carter
2002-03-14  0:36         ` ToString? Adrian Knoth
2002-03-15  4:58 ` Upping the ante (was): ToString? Kent Paul Dolan
2002-03-15  5:22   ` Jim Rogers
2002-04-04 23:21     ` Kent Paul Dolan
2002-04-05  5:09       ` Eric G. Miller
2002-04-05 19:45         ` Kent Paul Dolan
2002-04-06  4:07           ` Eric G. Miller
2002-04-06 22:23             ` Implied Programming contracts: " Kent Paul Dolan
  -- strict thread matches above, loose matches on Subject: below --
2002-03-14  6:05 ToString? Christoph Grein
2002-03-14 16:18 ` ToString? Jeffrey Carter
2002-03-15 14:18   ` ToString? Ted Dennison
replies disabled

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