From: "Robert I. Eachus" <rieachus@comcast.net>
Subject: Re: Newbie Question: Casting Issue
Date: Wed, 05 May 2004 19:25:58 -0400
Date: 2004-05-05T19:25:58-04:00 [thread overview]
Message-ID: <vfWdnY3Qq_ib5QTdRVn-sA@comcast.com> (raw)
In-Reply-To: <TMKdnQkt1-IG7gTdRVn-jA@comcast.com>
Robert I. Eachus wrote:
Ooops!
> if FLOAT_VAR > FLOAT_POINT_TYPE(FIX_POINT_TYPE'FIRST)
> and FLOAT_VAR < FLOAT_POINT_TYPE(FIX_POINT_TYPE'LAST)
> then
> FIX_VAR := FLOAT_VAR.
> else
> ...
if FLOAT_VAR > FLOAT_POINT_TYPE(FIX_POINT_TYPE'FIRST)
and FLOAT_VAR < FLOAT_POINT_TYPE(FIX_POINT_TYPE'LAST)
then
FIX_VAR := FIX_POINT_TYPE(FLOAT_VAR);
else
...
The problems of creating code using cut and paste...
--
Robert I. Eachus
"The terrorist enemy holds no territory, defends no population, is
unconstrained by rules of warfare, and respects no law of morality. Such
an enemy cannot be deterred, contained, appeased or negotiated with. It
can only be destroyed--and that, ladies and gentlemen, is the business
at hand." -- Dick Cheney
next prev parent reply other threads:[~2004-05-05 23:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-04 9:22 Newbie Question: Casting Issue Davide
2004-05-04 17:40 ` Jeffrey Carter
2004-05-05 23:07 ` Robert I. Eachus
2004-05-05 23:25 ` Robert I. Eachus [this message]
2004-05-07 7:10 ` Davide
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox