From: "BuckTheMan" Newsgroups: comp.os.msdos.djgpp References: <37B62E31 DOT 306E AT ns DOT sympatico DOT ca> Subject: Re: Modulus w/ Floats Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Message-ID: Date: Sun, 15 Aug 1999 03:55:28 GMT NNTP-Posting-Host: 24.5.116.198 X-Complaints-To: abuse AT home DOT net X-Trace: news.rdc1.tn.home.com 934689328 24.5.116.198 (Sat, 14 Aug 1999 20:55:28 PDT) NNTP-Posting-Date: Sat, 14 Aug 1999 20:55:28 PDT Organization: @Home Network To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Klaas wrote in message news:37B62E31 DOT 306E AT ns DOT sympatico DOT ca... > BuckTheMan wrote: > > > > Is there anyway to perform a mod (%) operation with type doubles? > > You could multiply by 10^x, convert to longs, %, then divide by 10^x > > (10^x being the precision you want to keep, ie 10000, 1000, etc) > > -Mike Could you be more specific. I'm kinda new to this all, sorry....