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.7 required=5.0 tests=AC_FROM_MANY_DOTS,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,9316ecaabdc23114 X-Google-Attributes: gid103376,public From: William Dale Subject: Re: Rounded off Date: 1999/06/14 Message-ID: <37658622.4ECA@lmco.com>#1/1 X-Deja-AN: 489691453 Content-Transfer-Encoding: 7bit References: <7jmq0c$uq$1@nnrp1.deja.com> <7jn9af$63i$1@nnrp1.deja.com> Content-Type: text/plain; charset=us-ascii Organization: LMMS, O/EA-10, (408)743-6812 Mime-Version: 1.0 Reply-To: n2rhv@nospam.amsat.org Newsgroups: comp.lang.ada Date: 1999-06-14T00:00:00+00:00 List-Id: Robert Dewar wrote: > > In article <7jmq0c$uq$1@nnrp1.deja.com>, > dennison@telepath.com wrote: > > How about: > > Integer(X + 0.5) > > > > -- > > T.E.D. > > Ouch! That's a mistake! The proper answer for rounding float > to integer is of course > > Integer (X) > > Sent via Deja.com http://www.deja.com/ > Share what you know. Learn what you don't. You might also look up T'Truncate (X) T'Ceiling (X) T'Floor (X) All take a float and return the same float type. -- "The difference between hardware and software is that the more you play with hardware, the more likely you are to break it, but the more you play with software the more likely you are to FIX it." Bill Dale LMMS mailto:william.dale.jr@lmco.com mailto:N2RHV@amsat.org