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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c0a7ae381f0b38c2 X-Google-Attributes: gid103376,public From: Jeff Carter Subject: Re: TRUNCATE a FLOAT [ 3,45 ] -> [ 3 ] Date: 2000/02/06 Message-ID: <389CAE9E.19D5066F@earthlink.net>#1/1 X-Deja-AN: 582106220 Content-Transfer-Encoding: 7bit References: <87ich2$pmk$1@bw107zhb.bluewin.ch> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-ELN-Date: Sat Feb 5 17:14:44 2000 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 949799684 63.11.145.116 (Sat, 05 Feb 2000 17:14:44 PST) Organization: EarthLink Network, Inc. MIME-Version: 1.0 Reply-To: jrcarter@acm.org NNTP-Posting-Date: Sat, 05 Feb 2000 17:14:44 PST Newsgroups: comp.lang.ada Date: 2000-02-06T00:00:00+00:00 List-Id: helder da silva wrote: > > Anyone remembers how to truncate the first part of a float number : > > FROM ( float ) : 3,45 > > TO ( integer ) : 3 > > I've got a blank on this one ! > > Thanks. This must be a FAQ; we just had a thread on floating-point attributes. Check out your ARM Annex K for the attribute 'Truncation. While you're there, look at 'Floor and 'Ceiling, too. Integer (Float'Trucation (3.45) ) = 3 -- Jeff Carter "Hello! Smelly English K...niggets." Monty Python & the Holy Grail