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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3c620ebecf1e16d4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!proxad.net!134.158.69.22.MISMATCH!in2p3.fr!oleane.net!oleane!skymaster!nobody From: "Jean-Pierre Rosen" Newsgroups: comp.lang.ada Subject: Re: ADA.CALENDAR and midnight Date: Thu, 5 Aug 2004 14:15:56 +0200 Organization: Adalog Message-ID: References: <2nelqrF21jaU1@uni-berlin.de> NNTP-Posting-Host: mailhost.axlog.fr X-Trace: s5.feed.news.oleane.net 1091711026 6215 195.25.228.57 (5 Aug 2004 13:03:46 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Thu, 5 Aug 2004 13:03:46 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Xref: g2news1.google.com comp.lang.ada:2576 Date: 2004-08-05T14:15:56+02:00 List-Id: "Jano" a �crit dans le message de news:2nelqrF21jaU1@uni-berlin.de... > Brian May wrote: > > > [2] Can someone confirm my assumption that Integer(86_399.9) = 86_399? > > Conversion between decimal and integer types does rounding. At least in > gnat. 4.6 (32): If the target type is an integer type and the operand type is real, the result is rounded to the nearest integer (away from zero if exactly halfway between two integers). If you want truncation, either subtract 0.5 or use the 'Floor attribute (or 'Truncation, depending on the behaviour you want for negative values). -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr