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,9316ecaabdc23114 X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: Rounded off Date: 1999/06/09 Message-ID: <7jmq0c$uq$1@nnrp1.deja.com>#1/1 X-Deja-AN: 487650964 References: X-Http-Proxy: 1.0 x41.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Wed Jun 09 22:31:38 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-06-09T00:00:00+00:00 List-Id: In article , dginc@tds.net wrote: > i am wondering how to have my output come out rounded insted of with > decimals?? the output is 19.8 figured from calculation, i want it to output > that rounded off (20). the calculation is from float a decimal and input is a > whole number. any suggestions > How about: Integer(X + 0.5) -- T.E.D. Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.