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-Thread: 103376,fc647120984c9ad2 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 01 Dec 2006 10:39:22 -0600 Date: Fri, 01 Dec 2006 11:37:19 -0500 From: Jeffrey Creem User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Way to use Ada Mod function on floats? References: <1164987168.477589.240140@j44g2000cwa.googlegroups.com> In-Reply-To: <1164987168.477589.240140@j44g2000cwa.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 24.147.74.171 X-Trace: sv3-VZ9lgPeWCZH/ed1baYMrzvGDRfDHS7s5fADck0zzqEqCLX77FRzUZPWnAAbwiHJYyUkmeG8ZsS9svzP!SfBEreNRK11AYbxRyGslEP4GvxoYkyUL7NjhL2aPNPl2ac76hlXxIchFAjjzQYs7J87RNisbaBPa!yCU= X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:7777 Date: 2006-12-01T11:37:19-05:00 List-Id: AAFellow@hotmail.com wrote: > Hi guys, > > I need to perform the mod operation on floats. Does anyone know of a > simple way to do this in Ada? It seems the mod function is only for > integers. I can probably multiply out the decimal places, and then > divide my answer back, but if there is a more simple way that saves > computations, I'd rather do that. > > Thank you for any help you can provide! > > AA > Hmm. I can't think of anything predefined that makes it all that easy. perhaps you should just pragma import the one from libc