comp.lang.ada
 help / color / mirror / Atom feed
From: Corey Ashford <yeroca@rocketmail.com>
Subject: Re: i need help w/problem
Date: 1999/02/22
Date: 1999-02-22T00:00:00+00:00	[thread overview]
Message-ID: <36D0FD58.6474E351@rocketmail.com> (raw)
In-Reply-To: Iz6A2.2502$LN5.3278079@news2.mia

Allan Davis wrote:
> 
> you convert the float number to string and then slice in
> 
> ie.    -- variables
>         num1 : float :=999.88;
>         number : string(1.. 6);
>         counter : natural :=1;
>         --body
>          number := string(num1);

That conversion won't work.

Use something like:

          number : constant string := float'image(float_variable);

in this case, float_variable = 999.98.

[rest of post snipped due to picky newgroup server]

- Corey




  reply	other threads:[~1999-02-22  0:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-21  0:00 i need help w/problem zufandel
1999-02-22  0:00 ` Allan Davis
1999-02-22  0:00   ` Corey Ashford [this message]
1999-02-22  0:00     ` David C. Hoos, Sr.
1999-02-22  0:00       ` Matthew Heaney
1999-02-23  0:00         ` Pascal Obry
1999-02-23  0:00           ` Matthew Heaney
1999-02-22  0:00     ` robert_dewar
1999-02-22  0:00       ` Matthew Heaney
1999-02-22  0:00         ` Mike Silva
1999-02-22  0:00           ` Nick Roberts
1999-02-22  0:00           ` dennison
1999-02-22  0:00           ` zufandel
1999-02-22  0:00       ` dennison
1999-02-22  0:00         ` zufandel
1999-02-22  0:00   ` bill
replies disabled

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