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.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,c0a7ae381f0b38c2 X-Google-Attributes: gid103376,public From: "helder da silva" Subject: Re: TRUNCATE a FLOAT [ 3,45 ] -> [ 3 ] Date: 2000/02/06 Message-ID: <87ijhb$rs7$1@bw107zhb.bluewin.ch>#1/1 X-Deja-AN: 582113055 References: <87ich2$pmk$1@bw107zhb.bluewin.ch> <389CAE9E.19D5066F@earthlink.net> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: newsmaster@bluewin.ch X-Trace: bw107zhb.bluewin.ch 949801323 28551 195.186.171.20 (6 Feb 2000 01:42:03 GMT) Organization: Swisscom AG, the blue window X-MSMail-Priority: Normal NNTP-Posting-Date: 6 Feb 2000 01:42:03 GMT Newsgroups: comp.lang.ada Date: 2000-02-06T01:42:03+00:00 List-Id: Thanks, that was real quick responding. Jeff Carter a �crit dans le message : 389CAE9E.19D5066F@earthlink.net... > 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