| delorie.com/archives/browse.cgi | search |
| Message-ID: | <37B62E31.306E@ns.sympatico.ca> |
| From: | Klaas <klaas AT ns DOT sympatico DOT ca> |
| 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: | <a3qt3.4889$sr6 DOT 1729 AT news DOT rdc1 DOT tn DOT home DOT com> |
| 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |