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.3 required=5.0 tests=BAYES_00,INVALID_MSGID 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: "David C. Hoos, Sr." Subject: Re: TRUNCATE a FLOAT [ 3,45 ] -> [ 3 ] Date: 2000/02/06 Message-ID: #1/1 X-Deja-AN: 582220488 Content-Transfer-Encoding: 7bit References: <87ich2$pmk$1@bw107zhb.bluewin.ch> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-ELN-Date: Sun Feb 6 02:31:11 2000 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 949833071 158.252.123.112 (Sun, 06 Feb 2000 02:31:11 PST) Organization: Ada95 Press, Inc. MIME-Version: 1.0 NNTP-Posting-Date: Sun, 06 Feb 2000 02:31:11 PST Newsgroups: comp.lang.ada Date: 2000-02-06T00:00:00+00:00 List-Id: helder da silva wrote in message news:87ich2$pmk$1@bw107zhb.bluewin.ch... > 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. > given the declarations X : Float; Y : Integer; you can write Y := Integer (Float'Floor (X));