🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6152

Re: Math error in BC++? Help!

#6152
From: Michael Spencer
Date: Mon, 21 Dec 1992 20:49
17 lines
1068 bytes
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
Technical Details
Message-ID: <1h5akvINNso4@darkstar.UCSC.EDU>
Path: arc1-ca.pugleaf.net!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
References: <1992Dec15.211516.1664@schunix.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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