From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,55d12b9409d3b4cd X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news1.google.com!news.glorb.com!news.newsland.it!news-out.tin.it!news-in.tin.it!news.finmeccanica.it!not-for-mail From: "Davide" Newsgroups: comp.lang.ada Subject: Re: Newbie Question: Casting Issue Date: Fri, 7 May 2004 09:10:33 +0200 Organization: Finmeccanica Message-ID: References: NNTP-Posting-Host: 192.168.54.114 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: controlnews3.google.com comp.lang.ada:348 Date: 2004-05-07T09:10:33+02:00 List-Id: Thank you. Precious, exhaustive response. "Robert I. Eachus" ha scritto nel messaggio news:vfWdnY3Qq_ib5QTdRVn-sA@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 >