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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,e96fdf9557794655 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsgate.cuhk.edu.hk!news.netfront.net!not-for-mail From: Bruno Newsgroups: comp.lang.ada Subject: Type casting Date: Mon, 26 Oct 2009 19:26:54 +0000 Organization: Netfront http://www.netfront.net Message-ID: <1256585214.3272.12.camel@HERMES> References: <4acc8c20$0$284$14726298@news.sunsite.dk> <4acdb7aa$0$283$14726298@news.sunsite.dk> NNTP-Posting-Host: 88.8.232.219 Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: adenine.netfront.net 1256585283 10815 88.8.232.219 (26 Oct 2009 19:28:03 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Mon, 26 Oct 2009 19:28:03 +0000 (UTC) In-Reply-To: <4acdb7aa$0$283$14726298@news.sunsite.dk> X-Mailer: Evolution 2.22.3.1 Xref: g2news2.google.com comp.lang.ada:8793 X-Original-Bytes: 1706 Date: 2009-10-26T19:26:54+00:00 List-Id: Hi, I have a small mess with the conversion of numeric types in the following program http://paste.ideaslabs.com/show/q6vOGqlyYJ I really do not know how to interpret the operation (E / 2) because although the operation is composed of two numbers such as "Positive" outcome can be of type "Float" and, of course, the "Integer" (attribute) returns an integer but the closest to real number and what need my program is that it returns the integer part regardless the decimal part. I tried creating a small building under the following function http://paste.ideaslabs.com/show/7y97bn4G6 but by requiring Float type parameters for the algorithm does not work prev. Can anyone shed some light on the conversion rate and the problem presented to me? Thank you.