home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!olivea!hal.com!darkstar.UCSC.EDU!cats.ucsc.edu!spencer
- From: spencer@cats.ucsc.edu (Michael Spencer)
- Newsgroups: comp.os.msdos.programmer
- Subject: Re: Math error in BC++? Help!
- Message-ID: <1h5akvINNso4@darkstar.UCSC.EDU>
- Date: 21 Dec 92 20:49:35 GMT
- References: <1992Dec15.211516.1664@schunix.uucp>
- Distribution: na
- Organization: University of California, Santa Cruz
- Lines: 17
- NNTP-Posting-Host: si.ucsc.edu
-
-
- sonix@schunix.uucp (Duane Morin) writes:
-
- >This is driving us NUTS!! Will someone please take a look at the following
- >code and see if they can figure out why it does what it does? Thank you.
-
- >// This next one is our error:
- >#define ILOGN(y) (int) (log ((double)y) / LOG2 )
- ==============================================================
-
- The problem may be with the spacing on your define, try:
-
- #define ILOGN(y) ((int)(log ((double)y) / LOG2 ))
-
- Good luck
- Mike Spencer
- spencer@cats.ucsc.edu
-