Message-ID: <37B62E31.306E@ns.sympatico.ca> From: Klaas Organization: N/A X-Mailer: Mozilla 3.04 (Win95; I) MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Modulus w/ Floats References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 9 Date: Sun, 15 Aug 1999 00:04:17 -0300 NNTP-Posting-Host: 142.177.98.3 X-Trace: sapphire.mtt.net 934686240 142.177.98.3 (Sun, 15 Aug 1999 00:04:00 ADT) NNTP-Posting-Date: Sun, 15 Aug 1999 00:04:00 ADT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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