Date: Sun, 19 Jan 1997 10:08:31 +0200 (IST) From: Eli Zaretskii To: Michael R Weholt cc: djgpp AT delorie DOT com Subject: Re: modulus operation with floats requires emulator? In-Reply-To: <5br7o7$p2e@news1.panix.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sat, 18 Jan 1997, 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. Use the library function `fmod'. The `%' operator is only for integers.