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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9316ecaabdc23114 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Rounded off Date: 1999/06/10 Message-ID: <7josv6$o0c$1@nnrp1.deja.com>#1/1 X-Deja-AN: 487951729 References: <7jmq0c$uq$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x42.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Thu Jun 10 17:34:30 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-06-10T00:00:00+00:00 List-Id: In article , "David C. Hoos, Sr." wrote: > > How about: > > Integer(X + 0.5) > > > > The above suggestion will give wrong results for negative > > numbers. NO! it is worse than that, it gives wrong results for half of all positive and negative numbers, for example Integer (2.3 + 0.5) is 3! Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.