From: skamn@my-deja.com
Subject: Re: Help ... CONSTRAINT_ERROR
Date: 1999/12/06
Date: 1999-12-06T00:00:00+00:00 [thread overview]
Message-ID: <82fbse$jqr$1@nnrp1.deja.com> (raw)
In-Reply-To: 81vfu6$sem$1@tobruk.sydney.gecm.com
In article <81vfu6$sem$1@tobruk.sydney.gecm.com>,
"jxredi" <jxredi@gecms.com.au> wrote:
>
> Hi,
> I was wondering if you could help me out with this problem (using
ADA83) :
>
> package R_IO is new TEXT_IO.FLOAT_IO(Float);
> NUM : STRING := "hi there";
> FNUM : Float := 0.75;
> R_IO.PUT(NUM,FNUM); -- this is where the problem is ... but what's
wrong
> ??
>
> ------------
> RUN-TIME ERROR : "constraint_error".
>
> ----
> Cheers,
> Jxredi.
>
>This should work:
with text_IO;
procedure try is
package Float_IO is new Text_IO.Float_IO (num => float);
NUM : string (1..8) := "hi there";
FNUM : float := 0.75;
begin
Text_IO.put (NUM);
Text_IO.put(" ");
Float_IO.put (FNUM, fore => 1, aft => 2, Exp => 0);
end try;
Sent via Deja.com http://www.deja.com/
Before you buy.
prev parent reply other threads:[~1999-12-06 0:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-30 0:00 Help ... CONSTRAINT_ERROR jxredi
1999-11-30 0:00 ` Preben Randhol
1999-11-30 0:00 ` reason67
1999-11-30 0:00 ` Preben Randhol
1999-11-30 0:00 ` David C. Hoos, Sr.
1999-11-30 0:00 ` Robert A Duff
1999-11-30 0:00 ` Ted Dennison
1999-11-30 0:00 ` reason67
1999-12-02 0:00 ` Stephen Leake
1999-12-06 0:00 ` skamn [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