From: johnherro@aol.com (John Herro)
Subject: Re: Float to string conversion
Date: 1999/03/18
Date: 1999-03-18T00:00:00+00:00 [thread overview]
Message-ID: <19990318161952.16104.00000249@ngol02.aol.com> (raw)
In-Reply-To: 7crnh9$773$1@nnrp1.dejanews.com
dd5372@my-dejanews.com wrote:
> I ... need to ... convert float values to strings.
> Using the 'image property ... on floats gives
> me the default Ada scientific notation for floats.
In the package Ada.Float_Text_IO is
procedure Put(To : out String;
Item : in Float;
Aft : in Field := ...;
Exp : in Field := ...);
where Field is a subtype of Integer. This writes to a String, letting you
specify the number of places after the decimal point and the size of the
exponent field, which can be zero. That should do it for you.
- John Herro
You can download a shareware AdaTutor program at
http://members.aol.com/AdaTutor
prev parent reply other threads:[~1999-03-18 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-18 0:00 Float to string conversion dd5372
1999-03-18 0:00 ` Marin David Condic
1999-03-18 0:00 ` John Herro [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