From: aho450s AT nic DOT smsu DOT edu (Tony O'Bryan) Newsgroups: comp.os.msdos.djgpp Subject: Re: modulus operation with floats requires emulator? Date: Sun, 19 Jan 1997 13:33:22 GMT Organization: Southwest Missouri State University Lines: 9 Message-ID: <32e2227b.1878494@ursa.smsu.edu> References: <5br7o7$p2e AT news1 DOT panix DOT com> NNTP-Posting-Host: forseti.i53.smsu.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On Sat, 18 Jan 97 19:18:28 GMT, awnbreel AT panix DOT com (Michael R Weholt) wrote: > When I try to use the modulus operation, I can only get it to >work using integers, not floats. When I try it with floats, the >debugger reports: "Error: invalid operands to binary %". I get this >message even when I try including math.h, or adding the -lm link >option. The modulus operation is not valid on floating point numbers.