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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c81958079621fd4,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-24 11:30:17 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!194.213.69.151!news.algonet.se!algonet!newsfeed.rt.ru!news-stob.telia.net!news-sto.telia.net!194.22.194.4.MISMATCH!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail Message-ID: <3BD70DE5.C2D2B6FD@ida.his.se> From: a98mican@ida.his.se X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.8-26mdk i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Decimal number of interger? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 24 Oct 2001 17:46:44 GMT NNTP-Posting-Host: 213.64.3.210 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1003945604 213.64.3.210 (Wed, 24 Oct 2001 19:46:44 CEST) NNTP-Posting-Date: Wed, 24 Oct 2001 19:46:44 CEST Organization: Telia Internet Xref: archiver1.google.com comp.lang.ada:15142 Date: 2001-10-24T17:46:44+00:00 List-Id: Hi! How do I determine weather the result from a function has a decimal part or not? I want to use the log function to se weather the width of the terrain is (2^x)+1. In order to do this I want to use the following: log2(width-1) = "float without decimal part" Thanks in advance! /Michael Andersson