From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: double trouble Date: Sat, 22 Aug 1998 13:37:52 -0700 Organization: Alcyone Systems Lines: 22 Message-ID: <35DF2C20.3BB92978@alcyone.com> References: <35DEDC2F DOT BB81D366 AT virgin DOT net> NNTP-Posting-Host: charmaine.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Stephen Snape wrote: > DJGPP won't let this happen. I can't access a bit in a double, why? It > keeps saying invalid operand to binary, and it's driving me mad. You can only bitshift integers, not floating points. The reason is pretty obvious -- bitshifting is well-defined and meaningful for integers, but not so for floating point. After all, there are some bit patterns that don't correspond to _any_ valid floating point number. > Thanks in advance, reply in e mail if you want, [Posted and emailed.] -- Erik Max Francis / email max AT alcyone DOT com / whois mf303 / icq 16063900 Alcyone Systems / irc maxxon (efnet) / finger max AT sade DOT alcyone DOT com San Jose, CA / languages En, Eo / web http://www.alcyone.com/max/ USA / icbm 37 20 07 N 121 53 38 W / &tSftDotIotE \ / Shooters, looters; now I got a laptop computer / Ice Cube