cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/15/05:18:35

From: "BuckTheMan" <cvasser AT home DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <a3qt3.4889$sr6 DOT 1729 AT news DOT rdc1 DOT tn DOT home DOT com> <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: <QSqt3.4912$sr6.1566@news.rdc1.tn.home.com>
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 <klaas AT ns DOT sympatico DOT ca> 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....


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019